Skip to content

Commit d6a3e0c

Browse files
committed
Fix console command execute return value expectation
1 parent e682c72 commit d6a3e0c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎skeleton/console/command/sample.php.twig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ class sample extends \phpbb\console\command\command
5050
*
5151
* @param InputInterface $input An InputInterface instance
5252
* @param OutputInterface $output An OutputInterface instance
53+
*
54+
* @return int 0 if everything went fine, or an exit code
5355
*/
5456
protected function execute(InputInterface $input, OutputInterface $output): int
5557
{
5658
$output->writeln($this->user->lang('CLI_{{ EXTENSION.extension_name|upper }}_HELLO'));
59+
60+
return 0;
5761
}
5862
}

0 commit comments

Comments
 (0)