diff --git a/src/Grant/PasswordGrant.php b/src/Grant/PasswordGrant.php index 6dc08958..124bb4f8 100644 --- a/src/Grant/PasswordGrant.php +++ b/src/Grant/PasswordGrant.php @@ -35,10 +35,7 @@ class PasswordGrant extends AbstractGrant RefreshTokenRepositoryInterface $refreshTokenRepository ) { $this->setUserRepository($userRepository); - - if ($refreshTokenRepository !== null) { - $this->setRefreshTokenRepository($refreshTokenRepository); - } + $this->setRefreshTokenRepository($refreshTokenRepository); $this->refreshTokenTTL = new DateInterval('P1M'); }