Skip to content

Commit

Permalink
Merge pull request #4 from ederuiter/patch-1
Browse files Browse the repository at this point in the history
Fix type error in retryHandler with ConnectException
  • Loading branch information
harm-smits authored Sep 3, 2021
2 parents 71697e5 + 66820b7 commit 73e605b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function unwrap(array $promises): array
private function getRetryHandler(): Closure
{
return function ($retries, ?RequestInterface $request, ?ResponseInterface $response,
?RequestException $exception) {
?GuzzleException $exception) {
if (!$response || $response->getStatusCode() > 500 || ($exception && $exception instanceof ConnectException))
return false;

Expand Down

0 comments on commit 73e605b

Please sign in to comment.