Skip to content

Commit

Permalink
API Explicity mark nullable parameters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 1ffbd53 commit 5d26aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Methods/CopyMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CopyMethod implements ExposeMethod
*/
protected $filesystem = null;

public function __construct(Filesystem $filesystem = null)
public function __construct(?Filesystem $filesystem = null)
{
$this->filesystem = $filesystem ?: new Filesystem();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Methods/SymlinkMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SymlinkMethod implements ExposeMethod
*/
protected $filesystem = null;

public function __construct(Filesystem $filesystem = null)
public function __construct(?Filesystem $filesystem = null)
{
$this->filesystem = $filesystem ?: new Filesystem();
}
Expand Down

0 comments on commit 5d26aff

Please sign in to comment.