diff --git a/composer.json b/composer.json index ba495fc..122e05a 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "require": { "php": "^8.2", "ext-json": "*", - "guzzlehttp/guzzle": "^6.3|^7.0" + "guzzlehttp/guzzle": "^6.3|^7.0|^8.0" }, "require-dev": { "phpunit/phpunit": "^7.0|^8.5.5|^9.0", diff --git a/src/HetznerAPIClient.php b/src/HetznerAPIClient.php index 7eb96a3..9f52b09 100644 --- a/src/HetznerAPIClient.php +++ b/src/HetznerAPIClient.php @@ -35,7 +35,7 @@ class HetznerAPIClient /** * Version of the API Client. */ - const VERSION = '3.1.1'; + const VERSION = '3.1.2'; const MAX_ENTITIES_PER_PAGE = 50; @@ -180,7 +180,7 @@ public static function throwError(ResponseInterface $response) { $body = (string) $response->getBody(); if (strlen($body) > 0) { - $error = \GuzzleHttp\json_decode($body); + $error = json_decode($body); throw new APIException(APIResponse::create([ 'error' => $error->error, ]), $error->error->message);