Skip to content

Commit

Permalink
Merge pull request #16 from magento-gl/Fix-PHP8.4-Deprecations
Browse files Browse the repository at this point in the history
Fix the PHP8.4 deprecations
  • Loading branch information
sidolov authored Jan 22, 2025
2 parents 2e82d60 + 15a1f20 commit b0faf5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ abstract class ExtendableRequireCommand extends RequireCommand
/**
* @inheritdoc
*/
public function __construct(string $name = null)
public function __construct(?string $name = null)
{
parent::__construct($name);
$this->fileName = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class OverrideRequireCommand extends ExtendableRequireCommand
* @param Application|null $application
* @return void
*/
public function setApplication(Application $application = null): void
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
Expand Down

0 comments on commit b0faf5a

Please sign in to comment.