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

Commit 762808a

Browse files
committed
[CS] Enforces null type hint on last position in phpDocs
1 parent 7a868ac commit 762808a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Csrf/CsrfTokenManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CsrfTokenManager implements CsrfTokenManagerInterface
3131
private $namespace;
3232

3333
/**
34-
* @param null|string|RequestStack|callable $namespace
34+
* @param string|RequestStack|callable|null $namespace
3535
* * null: generates a namespace using $_SERVER['HTTPS']
3636
* * string: uses the given string
3737
* * RequestStack: generates a namespace using the current master request

Guard/GuardAuthenticatorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function authenticateWithToken(TokenInterface $token, Request $request/*,
7373
* @param GuardAuthenticatorInterface $guardAuthenticator
7474
* @param string $providerKey The provider (i.e. firewall) key
7575
*
76-
* @return null|Response
76+
* @return Response|null
7777
*/
7878
public function handleAuthenticationSuccess(TokenInterface $token, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey)
7979
{
@@ -118,7 +118,7 @@ public function authenticateUserAndHandleSuccess(UserInterface $user, Request $r
118118
* @param GuardAuthenticatorInterface $guardAuthenticator
119119
* @param string $providerKey The key of the firewall
120120
*
121-
* @return null|Response
121+
* @return Response|null
122122
*/
123123
public function handleAuthenticationFailure(AuthenticationException $authenticationException, Request $request, GuardAuthenticatorInterface $guardAuthenticator, $providerKey)
124124
{

0 commit comments

Comments
 (0)