explicit is better than implicit :)

This commit is contained in:
filecage 2019-03-13 10:08:57 +01:00
parent 64f0d89fad
commit 0742d5150c

View File

@ -478,7 +478,7 @@ abstract class AbstractGrant implements GrantTypeInterface
{ {
$refreshToken = $this->refreshTokenRepository->getNewRefreshToken(); $refreshToken = $this->refreshTokenRepository->getNewRefreshToken();
if ($refreshToken === null) { if ($refreshToken === null) {
return; return null;
} }
$refreshToken->setExpiryDateTime((new DateTime())->add($this->refreshTokenTTL)); $refreshToken->setExpiryDateTime((new DateTime())->add($this->refreshTokenTTL));