Skip to content

Commit 8e56d7c

Browse files
authored
Merge pull request #184 from AlexeyKupershtokh/patch-1
Fixed reading of response if it has been already read
2 parents 146a9d4 + a187218 commit 8e56d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IntercomClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function getAuth()
181181
private function handleResponse(Response $response)
182182
{
183183
$stream = stream_for($response->getBody());
184-
$data = json_decode($stream->getContents());
184+
$data = json_decode($stream);
185185
return $data;
186186
}
187187
}

0 commit comments

Comments
 (0)