Skip to content

Commit 2331e70

Browse files
committed
Add console return type to prevent issues with Symfony 7
1 parent 748362f commit 2331e70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

console/create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function configure()
9292
*
9393
* @throws LogicException When this abstract method is not implemented
9494
*/
95-
protected function execute(InputInterface $input, OutputInterface $output)
95+
protected function execute(InputInterface $input, OutputInterface $output): int
9696
{
9797
$this->packager->create_extension($this->data);
9898

skeleton/console/command/sample.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class sample extends \phpbb\console\command\command
5151
* @param InputInterface $input An InputInterface instance
5252
* @param OutputInterface $output An OutputInterface instance
5353
*/
54-
protected function execute(InputInterface $input, OutputInterface $output)
54+
protected function execute(InputInterface $input, OutputInterface $output): int
5555
{
5656
$output->writeln($this->user->lang('CLI_{{ EXTENSION.extension_name|upper }}_HELLO'));
5757
}

0 commit comments

Comments
 (0)