diff --git a/src/SearchClient.php b/src/SearchClient.php index 9551908..28b2fec 100644 --- a/src/SearchClient.php +++ b/src/SearchClient.php @@ -64,6 +64,9 @@ private function search(SearchQueryInterface $searchQuery, $type): PagedCollecti $result = $this->client->request('GET', $type, $options); - return $this->serializer->deserialize($result->getBody()->getContents()); + $body = $result->getBody(); + $body->rewind(); + + return $this->serializer->deserialize($body->getContents()); } }