Skip to content

Commit 41b2fa7

Browse files
committed
Fix PHP 8.4 deprecation notice in Path class
> Implicitly marking parameter $basePath as nullable is deprecated, the explicit nullable type must be used instead in Resolves #20
1 parent b5790dd commit 41b2fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class Path
3232
*/
3333
private $glob;
3434

35-
public static function create(Filesystem $filesystem, string $path, self $basePath = null): self
35+
public static function create(Filesystem $filesystem, string $path, ?self $basePath = null): self
3636
{
3737
$path = $filesystem->normalizePath($path);
3838
/** @todo Replace with {@see \str_contains()} when we drop support for PHP 7. */

0 commit comments

Comments
 (0)