[2.3][Component/Security] Fixed phpdoc in AnonymousToken constructor for user param

This commit is contained in:
Erik van Wingerden 2016-05-09 09:52:08 +02:00 committed by Fabien Potencier
parent f1a87dbb58
commit b1c60b4f0d
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class AnonymousToken extends AbstractToken
* Constructor.
*
* @param string $key The key shared with the authentication provider
* @param string $user The user
* @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.
* @param RoleInterface[] $roles An array of roles
*/
public function __construct($key, $user, array $roles = array())

View File

@ -26,7 +26,7 @@ class PreAuthenticatedToken extends AbstractToken
/**
* Constructor.
*
* @param string|object $user The user
* @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.
* @param mixed $credentials The user credentials
* @param string $providerKey The provider key
* @param RoleInterface[]|string[] $roles An array of roles