Skip to content

Commit

Permalink
Replace deprecated query parse (#108)
Browse files Browse the repository at this point in the history
fixes #107
  • Loading branch information
ferhatelmas authored Sep 28, 2021
1 parent 2f24f5e commit 68e325e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GetStream/Stream/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static function handlerStack($apiKey, $apiSecret, $resource)
->withAddedHeader('Content-Type', 'application/json')
->withAddedHeader('X-Stream-Client', 'stream-php-client-' . Constant::VERSION);
// Add a api_key query param.
$queryParams = \GuzzleHttp\Psr7\parse_query($request->getUri()->getQuery());
$queryParams = \GuzzleHttp\Psr7\Query::parse($request->getUri()->getQuery());
$query = http_build_query($queryParams + ['api_key' => $apiKey]);
$request = $request->withUri($request->getUri()->withQuery($query));
return $handler($request, $options);
Expand Down

0 comments on commit 68e325e

Please sign in to comment.