Skip to content

Commit 7f63fd8

Browse files
committed
Fixed a strict typing error
1 parent 4388804 commit 7f63fd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ private function sendRequest(string $method, string $path, ?array $data = null):
9898

9999
try {
100100
$response = $this->guzzleClient->request($method, $uri, $requestOptions);
101-
$result = (array) json_decode($response->getBody(), true);
101+
$result = (array) json_decode($response->getBody()->getContents(), true);
102102

103103
return new Result(true, $result);
104104
} catch (ClientException $e) {
105105
$errors = [];
106-
$result = (array) json_decode($e->getResponse()->getBody(), true);
106+
$result = (array) json_decode($e->getResponse()->getBody()->getContents(), true);
107107

108108
if (isset($result['message'])) {
109109
$errors['errors'] = [

0 commit comments

Comments
 (0)