diff --git a/src/OAuth2/AuthServer.php b/src/OAuth2/AuthServer.php index 87f8e2dd..464eba35 100644 --- a/src/OAuth2/AuthServer.php +++ b/src/OAuth2/AuthServer.php @@ -26,7 +26,7 @@ class AuthServer static protected $storages = array(); - protected $grantTypes = array(); + static protected $grantTypes = array(); static protected $request = null; @@ -94,7 +94,7 @@ class AuthServer public static function hasGrantType($identifier) { - return (array_key_exists($identifier, $this->grantTypes)); + return (array_key_exists($identifier, self::$grantTypes)); } public function getScopeDelimeter()