From d64a865d3d1940fc360e2b10868006b79e407279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Mon, 23 Mar 2020 10:10:21 +0100 Subject: [PATCH] Changed return value of CronRunCommand::execute from null to 0 --- src/bundle/Command/CronRunCommand.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; } }