diff --git a/src/Handler/OAuth2ClientHandler.php b/src/Handler/OAuth2ClientHandler.php index 2b82d36..7d17206 100644 --- a/src/Handler/OAuth2ClientHandler.php +++ b/src/Handler/OAuth2ClientHandler.php @@ -86,8 +86,8 @@ private function authorize(RequestInterface $request) $token = $authorization->access_token; } - $queryparams = \GuzzleHttp\Psr7\parse_query($request->getUri()->getQuery()); - $preparedParams = \GuzzleHttp\Psr7\build_query($queryparams); + $queryparams = \GuzzleHttp\Psr7\Query::parse($request->getUri()->getQuery()); + $preparedParams = \GuzzleHttp\Psr7\Query::build($queryparams); return $request->withHeader('Authorization', "Bearer $token") ->withUri(