Skip to content

Commit

Permalink
[Console] Command::execute() should always return int - deprecate ret…
Browse files Browse the repository at this point in the history
…urning null

- added deprecation message for non-int return value in Command::execute()
- fixed all core commands to return proper int values
- added proper return type-hint to Command::execute() method in all core Commands
  • Loading branch information
jschaedl authored and nicolas-grekas committed Oct 2, 2019
1 parent b9e52cb commit dfb9df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/ServerDumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function configure()
;
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$format = $input->getOption('format');
Expand Down

0 comments on commit dfb9df5

Please sign in to comment.