diff options
author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2016-12-08 15:41:31 +0100 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2016-12-08 15:41:31 +0100 |
commit | c5b0c58603619794b2d2d5461ec03b5360118264 (patch) | |
tree | 320fecd5ab445851743c2c02d7b87008c3faca14 | |
parent | 60a5b88a0e434a8adba2f0fd2fe59c6a603a4fd6 (diff) | |
parent | 457ab5ad8b4e2f4bb1db7ed3b967ce55f4e9a0ae (diff) | |
download | symfony-security-c5b0c58603619794b2d2d5461ec03b5360118264.zip symfony-security-c5b0c58603619794b2d2d5461ec03b5360118264.tar.gz symfony-security-c5b0c58603619794b2d2d5461ec03b5360118264.tar.bz2 |
Merge branch '2.7' into 2.8v2.8.15
* 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
-rw-r--r-- | Core/Authentication/Token/AbstractToken.php | 2 | ||||
-rw-r--r-- | Core/Authentication/Token/PreAuthenticatedToken.php | 2 | ||||
-rw-r--r-- | Core/Authentication/Token/UsernamePasswordToken.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php index 7538648..2e9c0f3 100644 --- a/Core/Authentication/Token/AbstractToken.php +++ b/Core/Authentication/Token/AbstractToken.php @@ -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 */ diff --git a/Core/Authentication/Token/PreAuthenticatedToken.php b/Core/Authentication/Token/PreAuthenticatedToken.php index b4b5e70..a5460f5 100644 --- a/Core/Authentication/Token/PreAuthenticatedToken.php +++ b/Core/Authentication/Token/PreAuthenticatedToken.php @@ -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()) { diff --git a/Core/Authentication/Token/UsernamePasswordToken.php b/Core/Authentication/Token/UsernamePasswordToken.php index 33b00f0..71d19ad 100644 --- a/Core/Authentication/Token/UsernamePasswordToken.php +++ b/Core/Authentication/Token/UsernamePasswordToken.php @@ -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 */ |