From e768f110f26acb421fcc6b262faf9abfb6b5937f Mon Sep 17 00:00:00 2001 From: "j.faassen" Date: Sun, 7 Aug 2016 15:39:39 +0200 Subject: [PATCH] Drop type-hint for Response to support multiple Guzzle versions --- src/Common/ErrorResponseHandler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Common/ErrorResponseHandler.php b/src/Common/ErrorResponseHandler.php index 741c1e3..ffa6789 100644 --- a/src/Common/ErrorResponseHandler.php +++ b/src/Common/ErrorResponseHandler.php @@ -5,12 +5,11 @@ use Hub\Client\Exception\BadRequestException; use Hub\Client\Exception\NotFoundException; use Hub\Client\Exception\NotAuthorizedException; -use GuzzleHttp\Psr7\Response; use RuntimeException; class ErrorResponseHandler { - public static function handle(Response $response) + public static function handle($response) { if ($response->getStatusCode() == 401) { throw new NotAuthorizedException('NOT_AUTHORIZED', 'Basic auth failed');