From 4851eddf45c73038dd79aed9a0a5362a86c696b6 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 11 Jul 2023 16:44:49 +0200 Subject: [PATCH] [Console] Minor tweaks --- console/calling_commands.rst | 2 +- console/verbosity.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/console/calling_commands.rst b/console/calling_commands.rst index 2defb04d49a..1a9cce4e6c3 100644 --- a/console/calling_commands.rst +++ b/console/calling_commands.rst @@ -27,7 +27,7 @@ method):: { // ... - protected function execute(InputInterface $input, OutputInterface $output): void + protected function execute(InputInterface $input, OutputInterface $output): int { $command = $this->getApplication()->find('demo:greet'); diff --git a/console/verbosity.rst b/console/verbosity.rst index 7df68d30f23..f7a1a1e5e59 100644 --- a/console/verbosity.rst +++ b/console/verbosity.rst @@ -69,7 +69,7 @@ level. For example:: OutputInterface::VERBOSITY_VERBOSE ); - return 0; + return Command::SUCCESS; } }