php-loep/oauth2-client — pull request #24 by BenCavens (2013-09-30 12:11:12+00:00)
Title: IdentityProvider.php: Explicit call to $grant->__toString

Explicit call to $grant->__toString.

The __toString method didn't seem to be triggered on setting the defaultParams array which then again threw an error in guzzle when it tried to validate the parameters. (Cannot use object of type League\OAuth2\Client\Grant\Authorizationcode as array)

(Tested with PHP 5.4.12 on a windows machine)