Skip to content

Commit d3b414c

Browse files
committed
[Security] Fix TypeError message
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent eb0421c commit d3b414c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

User/ChainUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function upgradePassword($user, string $newHashedPassword): void
136136
trigger_deprecation('symfony/security-core', '5.3', 'The "%s::upgradePassword()" method expects an instance of "%s" as first argument, the "%s" class should implement it.', PasswordUpgraderInterface::class, PasswordAuthenticatedUserInterface::class, get_debug_type($user));
137137

138138
if (!$user instanceof UserInterface) {
139-
throw new \TypeError(sprintf('The "%s::upgradePassword()" method expects an instance of "%s" as first argument, "%s" given.', PasswordAuthenticatedUserInterface::class, get_debug_type($user)));
139+
throw new \TypeError(sprintf('The "%s::upgradePassword()" method expects an instance of "%s" as first argument, "%s" given.', static::class, PasswordAuthenticatedUserInterface::class, get_debug_type($user)));
140140
}
141141
}
142142

0 commit comments

Comments
 (0)