From 6c01d2ef44c3b571dcfe519f16a2dff3a0d9c349 Mon Sep 17 00:00:00 2001 From: Florian Levis Date: Sat, 23 Nov 2019 19:21:17 +0100 Subject: [PATCH 1/2] fix(deps): loosen constraint for symfony/messenger Like https://github.com/Sylius/ShopApiPlugin/pull/602: allow upgrade to symfony 4.4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }, From 871f5a646291b86cab2b0290fc617f2906eaa916 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Fri, 6 Dec 2019 14:33:41 +0100 Subject: [PATCH 2/2] Fix the build --- src/Cli/GenerateInvoicesCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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