Skip to content

Commit

Permalink
Remove always true/false occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Oct 23, 2024
1 parent da97783 commit 653ab90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/User/EntityUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string
}

$repository = $this->getRepository();
if ($user instanceof PasswordAuthenticatedUserInterface && $repository instanceof PasswordUpgraderInterface) {
if ($repository instanceof PasswordUpgraderInterface) {
$repository->upgradePassword($user, $newHashedPassword);
}
}
Expand Down

0 comments on commit 653ab90

Please sign in to comment.