diff --git a/src/Illuminate/Console/Application.php b/src/Illuminate/Console/Application.php index 3db2e9bb3bfe..d97cf45ce770 100755 --- a/src/Illuminate/Console/Application.php +++ b/src/Illuminate/Console/Application.php @@ -205,6 +205,18 @@ public function output() : ''; } + /** + * Alias for addCommand() since Symfony's add() method was deprecated. + * + * @param \Symfony\Component\Console\Command\Command $command + * @return \Symfony\Component\Console\Command\Command|null + */ + #[\Override] + public function add(SymfonyCommand $command): ?SymfonyCommand + { + return $this->addCommand($command); + } + /** * Add a command to the console. *