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 2ef1fcf commit a7b2328Copy full SHA for a7b2328
src/Resources/skeleton/security/UserProvider.tpl.php
@@ -46,7 +46,7 @@ public function loadUserByUsername($username): UserInterface
46
public function refreshUser(UserInterface $user): UserInterface
47
{
48
if (!$user instanceof <?= $user_short_name ?>) {
49
- throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
+ throw new UnsupportedUserException(sprintf('Invalid user class "%s".', $user::class));
50
}
51
52
// Return a User object after making sure its data is "fresh".
0 commit comments