From 71a5a1a0d80a223ab0648219cc62bbbb691af265 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 9 Feb 2024 14:33:05 +0100 Subject: [PATCH] Declare return types to be compatible with composer 2.7+ --- .../Plugin/Commands/OverrideRequireCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php b/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php index 2dec9c9..9657936 100644 --- a/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php +++ b/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php @@ -86,7 +86,7 @@ public function setApplication(Application $application = null) * * @return void */ - protected function configure() + protected function configure(): void { parent::configure(); @@ -170,7 +170,7 @@ protected function configure() * * @throws Exception */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $this->console = new Console($this->getIO(), $input->getOption(self::INTERACTIVE_OPT)); $this->pkgUtils = new PackageUtils($this->console);