diff --git a/src/bundle/Command/CronRunCommand.php b/src/bundle/Command/CronRunCommand.php index 4f6de84..0622cd7 100644 --- a/src/bundle/Command/CronRunCommand.php +++ b/src/bundle/Command/CronRunCommand.php @@ -1,8 +1,11 @@ cronJobsRegistry = $cronJobsRegistry; } - protected function configure() + protected function configure(): void { $this ->setDefinition([ @@ -43,7 +46,7 @@ protected function configure() ); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $category = $input->getOption('category'); $cronJobs = $this->cronJobsRegistry->getCategoryCronJobs($category); @@ -55,5 +58,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $cron->setResolver($resolver); $cron->run(); + + return 0; } }