Skip to content

Commit

Permalink
Merge pull request #1388 from Mopolo/phpstan-missing-returns
Browse files Browse the repository at this point in the history
Ajout de return demandés par l'interface
  • Loading branch information
agallou authored Dec 19, 2023
2 parents a49de0a + 531edfe commit d871e47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions sources/AppBundle/Security/LegacyAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public function checkCredentials($credentials, UserInterface $user)
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
{
$request->getSession()->getFlashBag()->add('error', "Utilisateur et/ou mot de passe incorrect");

return null;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions sources/AppBundle/Security/LegacyHashAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public function checkCredentials($credentials, UserInterface $user)
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
{
$request->getSession()->getFlashBag()->add('error', "Utilisateur et/ou mot de passe incorrect");

return null;
}

/**
Expand Down
4 changes: 1 addition & 3 deletions sources/AppBundle/Security/TestGithubAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
return new JsonResponse($data, 403);
}

/**
* @inheritDoc
*/
public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)
{
return null;
}

/**
Expand Down

0 comments on commit d871e47

Please sign in to comment.