Skip to content

Commit

Permalink
Cast the body to string (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Sep 6, 2022
1 parent 62ffa54 commit e5fb620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getRefreshTokenResponse(string $refreshToken)
],
]);

return json_decode($response->getBody()->getContents(), true);
return json_decode((string) $response->getBody(), true);
}

/**
Expand Down Expand Up @@ -232,6 +232,6 @@ public function introspectToken(string $token, string $hint = 'access_token')
],
]);

return json_decode($resp->getBody()->getContents(), true);
return json_decode((string) $resp->getBody(), true);
}
}

0 comments on commit e5fb620

Please sign in to comment.