mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Made $grantTypes static to fix ref bug
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user