From 2d91abfbdff35443c0498684b917fbeeb166669b Mon Sep 17 00:00:00 2001 From: Bernard Hamlin Date: Thu, 29 Oct 2020 14:13:11 +1300 Subject: [PATCH] Return int from execute Symfony console >=4.4 expects an int back from the execute function or it will throw. --- src/Console/VendorExposeCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Console/VendorExposeCommand.php b/src/Console/VendorExposeCommand.php index d198557..e55082d 100644 --- a/src/Console/VendorExposeCommand.php +++ b/src/Console/VendorExposeCommand.php @@ -41,7 +41,7 @@ public function execute(InputInterface $input, OutputInterface $output) $modules = $this->getAllLibraries(); if (empty($modules)) { $io->write("No modules to expose"); - return; + return 0; } // Query first library for base destination @@ -55,6 +55,8 @@ public function execute(InputInterface $input, OutputInterface $output) // Success $io->write("All modules updated!"); } + + return 0; } /**