Skip to content

Commit 30726e9

Browse files
Merge branch '6.4' into 7.0
* 6.4: [HttpKernel][MonologBridge][FrameworkBundle] Revisit wiring of debug loggers Improve 6.4 UPGRADE guide Add before/after examples to 6.3 UPGRADE guide [Security] Do not make PasswordUpgraderInterface a generic
2 parents 5ebd2b0 + 2449c72 commit 30726e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Security/User/EntityUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string
125125
}
126126

127127
$repository = $this->getRepository();
128-
if ($repository instanceof PasswordUpgraderInterface) {
128+
if ($user instanceof PasswordAuthenticatedUserInterface && $repository instanceof PasswordUpgraderInterface) {
129129
$repository->upgradePassword($user, $newHashedPassword);
130130
}
131131
}

0 commit comments

Comments
 (0)