Skip to content

Commit

Permalink
Declare $previous param as explicitly nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Jan 22, 2025
1 parent 2e649db commit 7996a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Error/UnexpectedResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class UnexpectedResponseException extends Exception
{
public readonly ResponseInterface $response;

public function __construct(ResponseContainer $response, Throwable $previous = null)
public function __construct(ResponseContainer $response, ?Throwable $previous = null)
{
$response = $response->getResponse();
if ($response === null) {
Expand Down

0 comments on commit 7996a3c

Please sign in to comment.