diff --git a/src/BaseClient.php b/src/BaseClient.php index 36b15c9..211ad4d 100644 --- a/src/BaseClient.php +++ b/src/BaseClient.php @@ -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; @@ -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; @@ -612,7 +614,7 @@ private function retryDecider() $retries, RequestInterface $request, ?ResponseInterface $response = null, - ?RequestException $exception = null + ?ClientExceptionInterface $exception = null ) { return $this->respectRateLimits && $response