Skip to content

Commit 09d284a

Browse files
Merge pull request #87 from creative-commoners/pulls/2/php84
API Explicity mark nullable parameters for PHP 8.4
2 parents 1ffbd53 + 5d26aff commit 09d284a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Methods/CopyMethod.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CopyMethod implements ExposeMethod
1919
*/
2020
protected $filesystem = null;
2121

22-
public function __construct(Filesystem $filesystem = null)
22+
public function __construct(?Filesystem $filesystem = null)
2323
{
2424
$this->filesystem = $filesystem ?: new Filesystem();
2525
}

src/Methods/SymlinkMethod.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SymlinkMethod implements ExposeMethod
1717
*/
1818
protected $filesystem = null;
1919

20-
public function __construct(Filesystem $filesystem = null)
20+
public function __construct(?Filesystem $filesystem = null)
2121
{
2222
$this->filesystem = $filesystem ?: new Filesystem();
2323
}

0 commit comments

Comments
 (0)