mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Add typehints to OAuthServerException calls
This commit is contained in:
parent
d7defafd83
commit
42df2d9c47
@ -95,7 +95,7 @@ class OAuthServerException extends \Exception
|
|||||||
*
|
*
|
||||||
* @param ServerRequestInterface $serverRequest
|
* @param ServerRequestInterface $serverRequest
|
||||||
*/
|
*/
|
||||||
public function setServerRequest($serverRequest)
|
public function setServerRequest(ServerRequestInterface $serverRequest)
|
||||||
{
|
{
|
||||||
$this->serverRequest = $serverRequest;
|
$this->serverRequest = $serverRequest;
|
||||||
}
|
}
|
||||||
@ -137,7 +137,7 @@ class OAuthServerException extends \Exception
|
|||||||
*
|
*
|
||||||
* @return static
|
* @return static
|
||||||
*/
|
*/
|
||||||
public static function invalidClient($serverRequest)
|
public static function invalidClient(ServerRequestInterface $serverRequest)
|
||||||
{
|
{
|
||||||
$exception = new static('Client authentication failed', 4, 'invalid_client', 401);
|
$exception = new static('Client authentication failed', 4, 'invalid_client', 401);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user