Skip to content

Commit 917d4e5

Browse files
authored
Merge pull request #39 from Seldaek/patch-1
Declare return types to be compatible with composer 2.7+
2 parents cee07b7 + 307a56e commit 917d4e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/OverrideRequireCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class OverrideRequireCommand extends ExtendableRequireCommand
6969
* @param Application|null $application
7070
* @return void
7171
*/
72-
public function setApplication(Application $application = null)
72+
public function setApplication(Application $application = null): void
7373
{
7474
// For Composer versions below 2.1.6:
7575
// 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)
8686
*
8787
* @return void
8888
*/
89-
protected function configure()
89+
protected function configure(): void
9090
{
9191
parent::configure();
9292

@@ -170,7 +170,7 @@ protected function configure()
170170
*
171171
* @throws Exception
172172
*/
173-
protected function execute(InputInterface $input, OutputInterface $output)
173+
protected function execute(InputInterface $input, OutputInterface $output): int
174174
{
175175
$this->console = new Console($this->getIO(), $input->getOption(self::INTERACTIVE_OPT));
176176
$this->pkgUtils = new PackageUtils($this->console);

src/Magento/ComposerRootUpdatePlugin/Plugin/Commands/RequireCommerceCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class RequireCommerceCommand extends ExtendableRequireCommand
6161
*
6262
* @return void
6363
*/
64-
protected function configure()
64+
protected function configure(): void
6565
{
6666
parent::configure();
6767

@@ -154,7 +154,7 @@ protected function getFormattedHelp(): string
154154
*
155155
* @throws Exception
156156
*/
157-
protected function execute(InputInterface $input, OutputInterface $output)
157+
protected function execute(InputInterface $input, OutputInterface $output): int
158158
{
159159
$this->console = new Console($this->getIO(), $input->getOption(self::INTERACTIVE_OPT));
160160
$console = $this->console;

0 commit comments

Comments
 (0)