diff --git a/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php b/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php index 2dec9c9..d1dfbc2 100644 --- a/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php +++ b/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php @@ -69,7 +69,7 @@ class OverrideRequireCommand extends ExtendableRequireCommand * @param Application|null $application * @return void */ - public function setApplication(Application $application = null) + public function setApplication(Application $application = null): void { // For Composer versions below 2.1.6: // In order to trick Composer into overriding its native RequireCommand with this class, the name needs to be @@ -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); diff --git a/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/RequireCommerceCommand.php b/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/RequireCommerceCommand.php index f960f26..671aa8f 100644 --- a/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/RequireCommerceCommand.php +++ b/src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/RequireCommerceCommand.php @@ -61,7 +61,7 @@ class RequireCommerceCommand extends ExtendableRequireCommand * * @return void */ - protected function configure() + protected function configure(): void { parent::configure(); @@ -154,7 +154,7 @@ protected function getFormattedHelp(): string * * @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)); $console = $this->console;