Skip to content

Commit cf9a178

Browse files
authored
[Security] Fix setUsername() deprecation message
1 parent cb23eaf commit cf9a178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Exception/UserNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function setUserIdentifier(string $identifier): void
6262
*/
6363
public function setUsername(string $username)
6464
{
65-
trigger_deprecation('symfony/security-core', '5.3', 'Method "%s()" is deprecated, use getUserIdentifier() instead.', __METHOD__);
65+
trigger_deprecation('symfony/security-core', '5.3', 'Method "%s()" is deprecated, use setUserIdentifier() instead.', __METHOD__);
6666

6767
$this->identifier = $username;
6868
}

0 commit comments

Comments
 (0)