[TOOLS][CS-FIXER] Fix incorrect transformation

This commit is contained in:
2021-10-10 09:35:36 +01:00
committed by Diogo Peralta Cordeiro
parent 9109c61af5
commit b65ee4c21d
6 changed files with 52 additions and 23 deletions

View File

@@ -107,7 +107,10 @@ class Authenticator extends AbstractFormLoginAuthenticator
return $user;
}
public function checkCredentials($credentials, LocalUser $user)
/**
* @param LocalUser $user
*/
public function checkCredentials($credentials, $user)
{
if (!$user->checkPassword($credentials['password'])) {
throw new CustomUserMessageAuthenticationException(_m('Invalid login credentials.'));