Skip to content

Commit a7b2328

Browse files
authored
Update UserProvider.tpl.php
1 parent 2ef1fcf commit a7b2328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/security/UserProvider.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function loadUserByUsername($username): UserInterface
4646
public function refreshUser(UserInterface $user): UserInterface
4747
{
4848
if (!$user instanceof <?= $user_short_name ?>) {
49-
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
49+
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', $user::class));
5050
}
5151

5252
// Return a User object after making sure its data is "fresh".

0 commit comments

Comments
 (0)