fix the docblock in regard to the role argument
This commit is contained in:
parent
7ef0951daf
commit
4e563aee02
|
@ -33,7 +33,7 @@ abstract class AbstractToken implements TokenInterface
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param RoleInterface[]|string[] $roles An array of roles
|
||||
* @param (RoleInterface|string)[] $roles An array of roles
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
|
|
@ -29,7 +29,7 @@ class PreAuthenticatedToken extends AbstractToken
|
|||
* @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
|
||||
* @param (RoleInterface|string)[] $roles An array of roles
|
||||
*/
|
||||
public function __construct($user, $credentials, $providerKey, array $roles = array())
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ class UsernamePasswordToken extends AbstractToken
|
|||
* @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method
|
||||
* @param string $credentials This usually is the password of the user
|
||||
* @param string $providerKey The provider key
|
||||
* @param RoleInterface[]|string[] $roles An array of roles
|
||||
* @param (RoleInterface|string)[] $roles An array of roles
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
|
Reference in New Issue