At line 369 of the vendor / bshaffer / oauth2-server-php / src / OAuth2 / Response.php file has the following code: "$ sep = isset ($ parts ['query']) && count ($ parts ['query']) " and error occurs in count(), because $parts ['query'] is not an array, it's a string.
At line 369 of the vendor / bshaffer / oauth2-server-php / src / OAuth2 / Response.php file has the following code: "$ sep = isset ($ parts ['query']) && count ($ parts ['query']) " and error occurs in count(), because $parts ['query'] is not an array, it's a string.