Skip to content

Commit 84e77e9

Browse files
committed
Fix implicitly nullable argument in JsonException constructor
1 parent 1c23d87 commit 84e77e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptions/JsonException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class JsonException extends GraphQLException
99
{
10-
public static function create(?string $reason = null, int $code = 400, Exception $previous = null): self
10+
public static function create(?string $reason = null, int $code = 400, ?Exception $previous = null): self
1111
{
1212
return new self(
1313
message: 'Invalid JSON.',

0 commit comments

Comments
 (0)