![]() If the server responded with an invalid JSON for `getAccessToken()`, $result variable will be of type string instead of expected array. This will result in a fatal error was being raised in AbstractProvider when calling `prepareAccessTokenResult` method, which expects an argument of type array. Proposed solution is to set the variable `$result` to an empty array if json_decode was not successful. Doesn't make sense to throw an expection at this point, because response will not have an access_token and an `InvalidArgumentException` will be thrown latter when `$grant->handleResponse()` will be called. Fix #230 |
||
---|---|---|
.. | ||
src | ||
Bootstrap.php |