Skip to content

Commit b0faf5a

Browse files
authored
Merge pull request #16 from magento-gl/Fix-PHP8.4-Deprecations
Fix the PHP8.4 deprecations
2 parents 2e82d60 + 15a1f20 commit b0faf5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Magento/ComposerRootUpdatePlugin/ComposerReimplementation/ExtendableRequireCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class ExtendableRequireCommand extends RequireCommand
6060
/**
6161
* @inheritdoc
6262
*/
63-
public function __construct(string $name = null)
63+
public function __construct(?string $name = null)
6464
{
6565
parent::__construct($name);
6666
$this->fileName = null;

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

Lines changed: 1 addition & 1 deletion
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): void
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

0 commit comments

Comments
 (0)