Skip to content

Commit 517b860

Browse files
committed
Cast Guzzle Response Body as String so that GuzzleHttp\json_decode() will accept it.
1 parent ebafd9a commit 517b860

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Metric/v1/Gnocchi/Models/Resource.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ public function getMetricMeasures(array $options = []): array
131131
);
132132

133133
$response = $this->execute($this->api->getResourceMetricMeasures(), $options);
134-
135-
return \GuzzleHttp\json_decode($response->getBody());
134+
return \GuzzleHttp\json_decode((string) $response->getBody());
136135
}
137136

138137
/**

0 commit comments

Comments
 (0)