Skip to content

Commit

Permalink
[Fix] PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
>  Dflydev\DotAccessData\Exception\MissingPathException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead
  • Loading branch information
smnandre committed Jun 30, 2024
1 parent f417154 commit bba15f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exception/MissingPathException.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MissingPathException extends DataException
/** @var string */
protected $path;

public function __construct(string $path, string $message = '', int $code = 0, Throwable $previous = null)
public function __construct(string $path, string $message = '', int $code = 0, ?Throwable $previous = null)
{
$this->path = $path;

Expand Down

0 comments on commit bba15f3

Please sign in to comment.