Skip to content

Commit

Permalink
fix ListCommand: update for Symfony >=5 exit status
Browse files Browse the repository at this point in the history
Fixes #1101

Return types required in Symfony >=5

Signed-off-by: Josh <josh.t.richards@gmail.com>
  • Loading branch information
joshtrichards committed Jan 17, 2024
1 parent 0e51d90 commit b8af7cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Command/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
} else {
$output->writeln("<info>No guests created</info>");
}
return;
return 0;
}

if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
Expand All @@ -65,6 +65,6 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$table->setRows($guests);
$table->render();
}
return;
return 0;
}
}

0 comments on commit b8af7cc

Please sign in to comment.