Skip to content

Commit 1c9c2eb

Browse files
committed
bug #529 Fix user class name on upgradePassword method of user repository (pyrech)
This PR was merged into the 1.0-dev branch. Discussion ---------- Fix user class name on upgradePassword method of user repository Commits ------- 6312f02 Fix user class name on upgradePassword method of user repository
2 parents 09fc38c + 6312f02 commit 1c9c2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/doctrine/Repository.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(ManagerRegistry $registry)
2828
*/
2929
public function upgradePassword(UserInterface $user, string $newEncodedPassword): void
3030
{
31-
if (!$user instanceof User) {
31+
if (!$user instanceof <?= $entity_class_name ?>) {
3232
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user)));
3333
}
3434

0 commit comments

Comments
 (0)