fix the docblock in regard to the role argument

This commit is contained in:
Christian Flothmann 2016-12-06 21:51:50 +01:00
parent 7ef0951daf
commit 4e563aee02
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ abstract class AbstractToken implements TokenInterface
/** /**
* Constructor. * Constructor.
* *
* @param RoleInterface[]|string[] $roles An array of roles * @param (RoleInterface|string)[] $roles An array of roles
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */

View File

@ -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 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 mixed $credentials The user credentials
* @param string $providerKey The provider key * @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()) public function __construct($user, $credentials, $providerKey, array $roles = array())
{ {

View File

@ -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|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 $credentials This usually is the password of the user
* @param string $providerKey The provider key * @param string $providerKey The provider key
* @param RoleInterface[]|string[] $roles An array of roles * @param (RoleInterface|string)[] $roles An array of roles
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */