From 2331e70398cdd8c70204794be31a95ffafe7ba9e Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Sat, 3 Jan 2026 13:45:04 -0800 Subject: [PATCH] Add console return type to prevent issues with Symfony 7 --- console/create.php | 2 +- skeleton/console/command/sample.php.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/console/create.php b/console/create.php index 4581951..3692ac1 100644 --- a/console/create.php +++ b/console/create.php @@ -92,7 +92,7 @@ protected function configure() * * @throws LogicException When this abstract method is not implemented */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $this->packager->create_extension($this->data); diff --git a/skeleton/console/command/sample.php.twig b/skeleton/console/command/sample.php.twig index 28fa0b3..20aea26 100644 --- a/skeleton/console/command/sample.php.twig +++ b/skeleton/console/command/sample.php.twig @@ -51,7 +51,7 @@ class sample extends \phpbb\console\command\command * @param InputInterface $input An InputInterface instance * @param OutputInterface $output An OutputInterface instance */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln($this->user->lang('CLI_{{ EXTENSION.extension_name|upper }}_HELLO')); }