From 41b2fa77fe3dc6e8797ef30204d6e99001197310 Mon Sep 17 00:00:00 2001 From: Chauncey McAskill Date: Tue, 3 Dec 2024 16:01:04 -0500 Subject: [PATCH] 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 --- src/Path.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */