Skip to content

Commit cbbb94b

Browse files
committed
[Doctrine Bridge] Fix an exception message
1 parent 04bee3e commit cbbb94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/Security/User/EntityUserProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function upgradePassword($user, string $newHashedPassword): void
139139
trigger_deprecation('symfony/doctrine-bridge', '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));
140140

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

0 commit comments

Comments
 (0)