From 54f9b0cdc0333e9fb9902f0ca1763fd28aa8f7b2 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 17 Jan 2024 10:17:35 -0500 Subject: [PATCH] fix ListCommand: update for Symfony >=5 exit status Fixes #1101 Return types required in Symfony >=5 Signed-off-by: Josh --- lib/Command/ListCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Command/ListCommand.php b/lib/Command/ListCommand.php index 42718ed0..70d734ba 100644 --- a/lib/Command/ListCommand.php +++ b/lib/Command/ListCommand.php @@ -44,7 +44,7 @@ protected function configure(): void { parent::configure(); } - protected function execute(InputInterface $input, OutputInterface $output): void { + protected function execute(InputInterface $input, OutputInterface $output): int { $guests = $this->guestManager->getGuestsInfo(); $outputType = $input->getOption('output'); @@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void } else { $output->writeln("No guests created"); } - return; + return 0; } if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) { @@ -65,6 +65,6 @@ protected function execute(InputInterface $input, OutputInterface $output): void $table->setRows($guests); $table->render(); } - return; + return 0; } }