mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 10:18:55 +05:30
Made $grantTypes static to fix ref bug
This commit is contained in:
parent
2a8688b54e
commit
3aa8465640
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user