Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 457ab5a

Browse files
committed
fix the docblock in regard to the role argument
1 parent 901685d commit 457ab5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Core/Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract class AbstractToken implements TokenInterface
3333
/**
3434
* Constructor.
3535
*
36-
* @param RoleInterface[]|string[] $roles An array of roles
36+
* @param (RoleInterface|string)[] $roles An array of roles
3737
*
3838
* @throws \InvalidArgumentException
3939
*/

Core/Authentication/Token/PreAuthenticatedToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class PreAuthenticatedToken extends AbstractToken
2929
* @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
32-
* @param RoleInterface[]|string[] $roles An array of roles
32+
* @param (RoleInterface|string)[] $roles An array of roles
3333
*/
3434
public function __construct($user, $credentials, $providerKey, array $roles = array())
3535
{

Core/Authentication/Token/UsernamePasswordToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UsernamePasswordToken extends AbstractToken
2929
* @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method
3030
* @param string $credentials This usually is the password of the user
3131
* @param string $providerKey The provider key
32-
* @param RoleInterface[]|string[] $roles An array of roles
32+
* @param (RoleInterface|string)[] $roles An array of roles
3333
*
3434
* @throws \InvalidArgumentException
3535
*/

0 commit comments

Comments
 (0)