summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-01-03 14:33:53 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2015-01-03 14:33:53 +0100
commit21d39918e40684006c679a53c528d361b3265b66 (patch)
treeebbcbb14d0ddda42e15358b998b3090f94048cee
parent63e85742d701e419e7544381336cd161388cce21 (diff)
parent62a9ffe55ff920fe8c5384cbedfbd0a2e0c1253d (diff)
downloadsymfony-security-21d39918e40684006c679a53c528d361b3265b66.zip
symfony-security-21d39918e40684006c679a53c528d361b3265b66.tar.gz
symfony-security-21d39918e40684006c679a53c528d361b3265b66.tar.bz2
minor #13211 [Security] fixed wrong phpdoc (fabpot)
This PR was merged into the 2.3 branch. Discussion ---------- [Security] fixed wrong phpdoc | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #12597 | License | MIT | Doc PR | n/a Commits ------- 064062d [Security] fixed wrong phpdoc
-rw-r--r--Core/Authentication/Token/TokenInterface.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Core/Authentication/Token/TokenInterface.php b/Core/Authentication/Token/TokenInterface.php
index fb9fd14..be90802 100644
--- a/Core/Authentication/Token/TokenInterface.php
+++ b/Core/Authentication/Token/TokenInterface.php
@@ -47,8 +47,10 @@ interface TokenInterface extends \Serializable
/**
* Returns a user representation.
*
- * @return mixed either returns an object which implements __toString(), or
- * a primitive string is returned.
+ * @return mixed Can be a UserInterface instance, an object implementing a __toString method,
+ * or the username as a regular string
+ *
+ * @see AbstractToken::setUser()
*/
public function getUser();