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 /Core/Encoder/PasswordEncoderInterface.php | |
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 'Core/Encoder/PasswordEncoderInterface.php')
0 files changed, 0 insertions, 0 deletions