Skip to content

Commit

Permalink
Merge pull request #49 from SERVEXS/bugfix/retry-decider-exception
Browse files Browse the repository at this point in the history
fixed Picqer\BolRetailerV10\BaseClient::Picqer\BolRetailerV10\{closur…
  • Loading branch information
casperbakker authored Sep 18, 2024
2 parents 9d3b8d5 + ad9e05e commit c9a7756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\Exception\BadResponseException;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\ConnectException as GuzzleConnectException;
use GuzzleHttp\Exception\RequestException;
Expand All @@ -18,6 +19,7 @@
use Picqer\BolRetailerV10\Exception\UnauthorizedException;
use Picqer\BolRetailerV10\Model\Authentication\TokenResponse;
use Picqer\BolRetailerV10\Model\Authentication\TokenRequest;
use Psr\Http\Client\ClientExceptionInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;

Expand Down Expand Up @@ -612,7 +614,7 @@ private function retryDecider()
$retries,
RequestInterface $request,
?ResponseInterface $response = null,
?RequestException $exception = null
?ClientExceptionInterface $exception = null
) {
return $this->respectRateLimits
&& $response
Expand Down

0 comments on commit c9a7756

Please sign in to comment.