diff --git a/composer.json b/composer.json index 39dae4d0..5218d749 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "symfony/framework-bundle": "^4.3", "symfony/http-foundation": "^4.3", "symfony/http-kernel": "^4.3", - "symfony/messenger": "~4.3.0", + "symfony/messenger": "^4.3", "symfony/options-resolver": "^4.3", "symfony/routing": "^4.3" }, diff --git a/src/Cli/GenerateInvoicesCommand.php b/src/Cli/GenerateInvoicesCommand.php index fbd3b397..0e2b8da2 100644 --- a/src/Cli/GenerateInvoicesCommand.php +++ b/src/Cli/GenerateInvoicesCommand.php @@ -28,7 +28,7 @@ public function __construct( $this->orderRepository = $orderRepository; } - public function execute(InputInterface $input, OutputInterface $output): void + public function execute(InputInterface $input, OutputInterface $output): int { /** @var array $orders */ $orders = $this->orderRepository @@ -40,6 +40,8 @@ public function execute(InputInterface $input, OutputInterface $output): void $this->massInvoicesCreator->__invoke($orders); $output->writeln('Invoices generated successfully'); + + return 0; } protected function configure(): void