mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-30 11:13:21 +05:30
Static analysis with PHPStan
This commit is contained in:
12 files changed
+28
-20
No files matched your search
@@ -63,7 +63,9 @@ class ResourceServer
|
||||
$this->authorizationValidator = new BearerTokenValidator($this->accessTokenRepository);
|
||||
}
|
||||
|
||||
$this->authorizationValidator->setPublicKey($this->publicKey);
|
||||
if ($this->authorizationValidator instanceof BearerTokenValidator === true) {
|
||||
$this->authorizationValidator->setPublicKey($this->publicKey);
|
||||
}
|
||||
|
||||
return $this->authorizationValidator;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user