Skip to content

Commit

Permalink
Merge pull request #91 from frankdors/frankdors-GuzzleHttp-deprecated
Browse files Browse the repository at this point in the history
Atualizado OAuth2ClientHandler.php substituindo functions do GuzzleHt…
  • Loading branch information
dilowagner authored Sep 19, 2023
2 parents 02dbf70 + 572642e commit 3fe4163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handler/OAuth2ClientHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3fe4163

Please sign in to comment.