diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2012-06-20 21:15:34 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-06-20 21:15:34 +0200 |
commit | 1d26f9286503935f3d4670d2087c1194063687be (patch) | |
tree | 5498aab6b916ca08cc26a635016d792ec6c91490 | |
parent | 0c3f1b8f2335a0801b1078e7401216da731a0996 (diff) | |
parent | 64f260864f10ed1dd1e8d711ce8143d21c3318e1 (diff) | |
download | symfony-security-1d26f9286503935f3d4670d2087c1194063687be.zip symfony-security-1d26f9286503935f3d4670d2087c1194063687be.tar.gz symfony-security-1d26f9286503935f3d4670d2087c1194063687be.tar.bz2 |
merged branch Maks3w/patch-4 (PR #4616)
Commits
-------
fa050b7 [Security] Change return value in DocBlock
Discussion
----------
[Security] Change return value in DocBlock
Change the return value for avoid confusions.
```php
if (!$user instanceof UserInterface) {
throw new AuthenticationServiceException('retrieveUser() must return a UserInterface.');
}
```
[UserAuthenticationProvider.php#L67](https://github.com/symfony/symfony/tree/2.0/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php#L67)
---------------------------------------------------------------------------
by travisbot at 2012-06-19T21:03:07Z
This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1659148) (merged fa050b77 into e78a7bae).
-rw-r--r-- | Core/Authentication/Provider/UserAuthenticationProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Authentication/Provider/UserAuthenticationProvider.php b/Core/Authentication/Provider/UserAuthenticationProvider.php index ce78df6..23aa816 100644 --- a/Core/Authentication/Provider/UserAuthenticationProvider.php +++ b/Core/Authentication/Provider/UserAuthenticationProvider.php @@ -101,7 +101,7 @@ abstract class UserAuthenticationProvider implements AuthenticationProviderInter * @param string $username The username to retrieve * @param UsernamePasswordToken $token The Token * - * @return array The user + * @return UserInterface The user * * @throws AuthenticationException if the credentials could not be validated */ |