Skip to content

Commit 6312f02

Browse files
authored
Fix user class name on upgradePassword method of user repository
1 parent 09fc38c commit 6312f02

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)