diff --git a/src/Path.php b/src/Path.php index 2d53325..ee77e75 100644 --- a/src/Path.php +++ b/src/Path.php @@ -32,7 +32,7 @@ final class Path */ private $glob; - public static function create(Filesystem $filesystem, string $path, self $basePath = null): self + public static function create(Filesystem $filesystem, string $path, ?self $basePath = null): self { $path = $filesystem->normalizePath($path); /** @todo Replace with {@see \str_contains()} when we drop support for PHP 7. */