Skip to content

Commit dfb9df5

Browse files
jschaedlnicolas-grekas
authored andcommitted
[Console] Command::execute() should always return int - deprecate returning 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
1 parent b9e52cb commit dfb9df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/ServerDumpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function configure()
7575
;
7676
}
7777

78-
protected function execute(InputInterface $input, OutputInterface $output)
78+
protected function execute(InputInterface $input, OutputInterface $output): int
7979
{
8080
$io = new SymfonyStyle($input, $output);
8181
$format = $input->getOption('format');

0 commit comments

Comments
 (0)