Skip to content

Commit 0b06491

Browse files
authored
fix: mark argument nullable in PropertyNotFoundException (#1059)
1 parent befb232 commit 0b06491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptions/PropertyNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PropertyNotFoundException extends Exception
1313
* @param string $caller
1414
* @param \Exception $previous
1515
*/
16-
public function __construct($property = '', $caller = '', Exception $previous = null)
16+
public function __construct($property = '', $caller = '', ?Exception $previous = null)
1717
{
1818
$message = "'$property' not found in '$caller'' object";
1919
parent::__construct($message, 0, $previous);

0 commit comments

Comments
 (0)