8000 [2.3][Component/Security] Fixed phpdoc in AnonymousToken constructor … · symfony/symfony@b1c60b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1c60b4

Browse files
Erik van Wingerdenfabpot
Erik van Wingerden
authored andcommitted
[2.3][Component/Security] Fixed phpdoc in AnonymousToken constructor for user param
1 parent f1a87db commit b1c60b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Security/Core/Authentication/Token/AnonymousToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AnonymousToken extends AbstractToken
2626
* Constructor.
2727
*
2828
* @param string $key The key shared with the authentication provider
29-
* @param string $user The user
29+
* @param string|object $user The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string.
3030
* @param RoleInterface[] $roles An array of roles
3131
*/
3232
public function __construct($key, $user, array $roles = array())

src/Symfony/Component/Security/Core/Authentication/Token/PreAuthenticatedToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PreAuthenticatedToken extends AbstractToken
2626
/**
2727
* Constructor.
2828
*
29-
* @param string|object $user The user
29+
* @param string|object $user The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string.
3030
* @param mixed $credentials The user credentials
3131
* @param string $providerKey The provider key
3232
* @param RoleInterface[]|string[] $roles An array of roles

0 commit comments

Comments
 (0)
0