Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 4bc570e

Browse files
committed
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.'); }
1 parent fbfcb38 commit 4bc570e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Http/RememberMe/AbstractRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ final public function loginSuccess(Request $request, Response $response, TokenIn
217217
* @param array $cookieParts
218218
* @param Request $request
219219
*
220-
* @return TokenInterface
220+
* @return UserInterface
221221
*/
222222
abstract protected function processAutoLoginCookie(array $cookieParts, Request $request);
223223

0 commit comments

Comments
 (0)