bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Parameter must be an array or an object that implements Countable in vendor/bshaffer/oauth2-server-php/src/OAuth2/Response.php:369 #947

Closed julianaEngelmann closed 6 years ago

julianaEngelmann commented 6 years ago

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.