diff options
author | Dawid Nowak <github@dnowak.pl> | 2015-05-07 16:20:47 +0200 |
---|---|---|
committer | Dawid Nowak <github@dnowak.pl> | 2015-05-07 16:20:47 +0200 |
commit | 4bc570e4ecad43b827f5c8852a4a4616ede89e4e (patch) | |
tree | 03a87acd7bd4de3e7370c43a09e8df0f82eafbd4 /Http/RememberMe | |
parent | fbfcb38752f8b09da05bfbe2b59fcba4d0f526dd (diff) | |
download | symfony-security-4bc570e4ecad43b827f5c8852a4a4616ede89e4e.zip symfony-security-4bc570e4ecad43b827f5c8852a4a4616ede89e4e.tar.gz symfony-security-4bc570e4ecad43b827f5c8852a4a4616ede89e4e.tar.bz2 |
PhpDoc fix in AbstractRememberMeServicesv2.3.28
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.');
}
Diffstat (limited to 'Http/RememberMe')
-rw-r--r-- | Http/RememberMe/AbstractRememberMeServices.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/RememberMe/AbstractRememberMeServices.php b/Http/RememberMe/AbstractRememberMeServices.php index 659510a..b14e36d 100644 --- a/Http/RememberMe/AbstractRememberMeServices.php +++ b/Http/RememberMe/AbstractRememberMeServices.php @@ -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); |