Expose parameter passed to exceptions

This commit is contained in:
Mathieu Pipet
2015-06-09 17:42:25 +02:00
parent c84ea1ea62
commit b256195421
7 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ class ServerErrorException extends OAuthException
*/
public function __construct($parameter = null)
{
$this->parameter = parameter;
$this->parameter = $parameter;
$parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter;
parent::__construct($parameter);