From 47b6edd69af43cd92680e9524590b9a6653443b3 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 14 Jan 2025 14:57:23 -0800 Subject: [PATCH] Fix regression in 'export' command After some prior Symfony update, most subcommands were updated. But apparently this one slipped through. It currently emits: Uncaught TypeError: Return value of "Loco\Command\ExportCommand::execute()" must be of the type int, "null" returned. --- src/Command/ExportCommand.php | 1 + src/Command/RunCommand.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Command/ExportCommand.php b/src/Command/ExportCommand.php index ae42345..98cb83b 100644 --- a/src/Command/ExportCommand.php +++ b/src/Command/ExportCommand.php @@ -62,6 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { )); } } + return 0; } } diff --git a/src/Command/RunCommand.php b/src/Command/RunCommand.php index 4bbf2e8..34b752d 100644 --- a/src/Command/RunCommand.php +++ b/src/Command/RunCommand.php @@ -41,6 +41,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { else { $this->executeInManagedMode($input, $output); } + return 0; } /**