PhpDoc fix in AbstractRememberMeServices

All extending classes return `UserInterface`, not TokenInterface:

* https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php#L64
* https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Security/Http/RememberMe/PersistentTokenBasedRememberMeServices.php#L116

And `AbstractRememberMeServices` actually required the return value to be `UserInterface`:

            $user = $this->processAutoLoginCookie($cookieParts, $request);

            if (!$user instanceof UserInterface) {
                throw new \RuntimeException('processAutoLoginCookie() must return a UserInterface implementation.');
            }
This commit is contained in:
Dawid Nowak 2015-05-07 16:20:47 +02:00
parent 8e0f822edb
commit a73d2cc685
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ abstract class AbstractRememberMeServices implements RememberMeServicesInterface
* @param array $cookieParts
* @param Request $request
*
* @return TokenInterface
* @return UserInterface
*/
abstract protected function processAutoLoginCookie(array $cookieParts, Request $request);