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; } }