Skip to content

Commit 7306018

Browse files
ro0NLfabpot
authored andcommitted
[Security] Update user phpdoc on tokens
1 parent f803762 commit 7306018

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,7 @@ public function getUser()
7777
}
7878

7979
/**
80-
* Sets the user in the token.
81-
*
82-
* The user can be a UserInterface instance, or an object implementing
83-
* a __toString method or the username as a regular string.
84-
*
85-
* @param string|object $user The user
86-
*
87-
* @throws \InvalidArgumentException
80+
* {@inheritdoc}
8881
*/
8982
public function setUser($user)
9083
{

src/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,22 @@ public function getCredentials();
4747
/**
4848
* Returns a user representation.
4949
*
50-
* @return mixed Can be a UserInterface instance, an object implementing a __toString method,
51-
* or the username as a regular string
50+
* @return string|object Can be a UserInterface instance, an object implementing a __toString method,
51+
* or the username as a regular string
5252
*
5353
* @see AbstractToken::setUser()
5454
*/
5555
public function getUser();
5656

5757
/**
58-
* Sets a user.
58+
* Sets the user in the token.
5959
*
60-
* @param mixed $user
60+
* The user can be a UserInterface instance, or an object implementing
61+
* a __toString method or the username as a regular string.
62+
*
63+
* @param string|object $user The user
64+
*
65+
* @throws \InvalidArgumentException
6166
*/
6267
public function setUser($user);
6368

0 commit comments

Comments
 (0)