From 95ead1194064e098454a3f876cb05ad8a35773a7 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" Date: Tue, 15 Oct 2024 16:04:03 +0200 Subject: [PATCH] fix for https://github.com/dauxio/daux.io/issues/444 --- libs/Console/ClearCache.php | 2 +- libs/Console/Generate.php | 2 +- libs/Console/Serve.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/Console/ClearCache.php b/libs/Console/ClearCache.php index dd73d509..4bbde87f 100644 --- a/libs/Console/ClearCache.php +++ b/libs/Console/ClearCache.php @@ -14,7 +14,7 @@ protected function configure() ->setDescription('Clears the cache'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln("Clearing cache at '" . Cache::getDirectory() . "'"); Cache::clear(); diff --git a/libs/Console/Generate.php b/libs/Console/Generate.php index 3cf5211e..235e3283 100755 --- a/libs/Console/Generate.php +++ b/libs/Console/Generate.php @@ -50,7 +50,7 @@ protected function prepareConfig($mode, InputInterface $input, OutputInterface $ return $builder; } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { // When used as a default command, // Symfony doesn't read the default parameters. diff --git a/libs/Console/Serve.php b/libs/Console/Serve.php index 94eb28e0..d6af54eb 100755 --- a/libs/Console/Serve.php +++ b/libs/Console/Serve.php @@ -21,7 +21,7 @@ protected function configure() ->addOption('port', null, InputOption::VALUE_REQUIRED, 'The port to serve on', 8085); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $host = $input->getOption('host'); $port = $input->getOption('port');