Skip to content

Commit cdc5aec

Browse files
committed
bug symfony#42078 [DoctrineBridge] [Doctrine Bridge] Fix an exception message (javiereguiluz)
This PR was merged into the 5.3 branch. Discussion ---------- [DoctrineBridge] [Doctrine Bridge] Fix an exception message | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- cbbb94b [Doctrine Bridge] Fix an exception message
2 parents 04bee3e + cbbb94b commit cdc5aec

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)