Skip to content

Commit

Permalink
Fix the PHP8.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
glo71317 committed Jan 22, 2025
1 parent 2e82d60 commit 15a1f20
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 15a1f20

Please sign in to comment.