Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ErrorHandler implements ErrorHandlerInterface
* @throws ClientExceptionInterface
* @throws SchemaRegistryExceptionInterface
*/
public function handleError(ResponseInterface $response, string $uri = null, RequestInterface $request = null): void
public function handleError(ResponseInterface $response, ?string $uri = null, ?RequestInterface $request = null): void
{
$responseContent = json_decode($response->getBody(), true, 512, JSON_THROW_ON_ERROR);

Expand Down
4 changes: 2 additions & 2 deletions src/ErrorHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface ErrorHandlerInterface
*/
public function handleError(
ResponseInterface $response,
string $uri = null,
RequestInterface $request = null
?string $uri = null,
?RequestInterface $request = null
): void;
}