We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09fc38c commit 6312f02Copy full SHA for 6312f02
src/Resources/skeleton/doctrine/Repository.tpl.php
@@ -28,7 +28,7 @@ public function __construct(ManagerRegistry $registry)
28
*/
29
public function upgradePassword(UserInterface $user, string $newEncodedPassword): void
30
{
31
- if (!$user instanceof User) {
+ if (!$user instanceof <?= $entity_class_name ?>) {
32
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user)));
33
}
34
0 commit comments