thephpleague/oauth2-client — pull request #121 by dbollaer (2014-07-07 10:57:12+00:00)
Title: Update IDPException.php

In our tests, we received a string(json string), instead of an array.
By adding this code here, it's converted to an array and you get the correct exception.

The code causing the problem is.
class: IdentityProvider

method fetchUserDetails

The problem was caused when we got an exception because the token was expired.

Kind regards,
Danny