summaryrefslogtreecommitdiffstats
path: root/Core/Authentication
diff options
context:
space:
mode:
authorChristophe Coevoet <stof@notk.org>2014-10-24 11:21:28 +0200
committerChristophe Coevoet <stof@notk.org>2014-10-24 11:21:28 +0200
commit573f2ce8b9c550c2b8215fd590619d52dae7f9cc (patch)
treec67bbadb38b9f4de2eacadb428651ef08529264b /Core/Authentication
parentcd022841a94f02dd95541fee4cc4a09c4b053d01 (diff)
downloadsymfony-security-573f2ce8b9c550c2b8215fd590619d52dae7f9cc.zip
symfony-security-573f2ce8b9c550c2b8215fd590619d52dae7f9cc.tar.gz
symfony-security-573f2ce8b9c550c2b8215fd590619d52dae7f9cc.tar.bz2
Improved the phpdoc for security token classes
Diffstat (limited to 'Core/Authentication')
-rw-r--r--Core/Authentication/Token/AbstractToken.php2
-rw-r--r--Core/Authentication/Token/UsernamePasswordToken.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php
index 6813adf..3982b08 100644
--- a/Core/Authentication/Token/AbstractToken.php
+++ b/Core/Authentication/Token/AbstractToken.php
@@ -88,7 +88,7 @@ abstract class AbstractToken implements TokenInterface
* The user can be a UserInterface instance, or an object implementing
* a __toString method or the username as a regular string.
*
- * @param mixed $user The user
+ * @param string|object $user The user
* @throws \InvalidArgumentException
*/
public function setUser($user)
diff --git a/Core/Authentication/Token/UsernamePasswordToken.php b/Core/Authentication/Token/UsernamePasswordToken.php
index b6dfce4..9248136 100644
--- a/Core/Authentication/Token/UsernamePasswordToken.php
+++ b/Core/Authentication/Token/UsernamePasswordToken.php
@@ -26,10 +26,10 @@ class UsernamePasswordToken extends AbstractToken
/**
* Constructor.
*
- * @param string $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[] $roles An array of roles
+ * @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
*
* @throws \InvalidArgumentException
*/