mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
explicit is better than implicit :)
This commit is contained in:
parent
64f0d89fad
commit
0742d5150c
@ -478,7 +478,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
||||
{
|
||||
$refreshToken = $this->refreshTokenRepository->getNewRefreshToken();
|
||||
if ($refreshToken === null) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
$refreshToken->setExpiryDateTime((new DateTime())->add($this->refreshTokenTTL));
|
||||
|
Loading…
Reference in New Issue
Block a user