Skip to content

Commit 2eeae7c

Browse files
authored
Merge pull request #231 from jrelinque/master
Avoid 'use function' to ensure compatibility with PHP5.6
2 parents 81b3092 + 2e89031 commit 2eeae7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/IntercomClient.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use GuzzleHttp\Client;
66
use GuzzleHttp\Psr7\Response;
7-
use function GuzzleHttp\Psr7\stream_for;
87
use Psr\Http\Message\ResponseInterface;
98

109
class IntercomClient
@@ -207,7 +206,7 @@ private function handleResponse(Response $response)
207206
{
208207
$this->setRateLimitDetails($response);
209208

210-
$stream = stream_for($response->getBody());
209+
$stream = \GuzzleHttp\Psr7\stream_for($response->getBody());
211210
$data = json_decode($stream);
212211
return $data;
213212
}

0 commit comments

Comments
 (0)