Skip to content

Commit

Permalink
Fix PHP 8.4 deprecation notice in Path class
Browse files Browse the repository at this point in the history
> Implicitly marking parameter $basePath as nullable is deprecated, the explicit nullable type must be used instead in

Resolves #20
  • Loading branch information
mcaskill committed Dec 3, 2024
1 parent b5790dd commit 41b2fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 41b2fa7

Please sign in to comment.