10000 Merge branch '2.7' into 2.8 · symfony/security-core@2e03bc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e03bc1

Browse files
Merge branch '2.7' into 2.8
* 2.7: [Twig] Fix deprecations with Twig 1.29 fix the docblock in regard to the role argument Cast result to int before adding to it
2 parents 4f2e3d1 + 97bc4bf commit 2e03bc1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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
*/

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
{

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)
0