Skip to content

Commit 274a6ae

Browse files
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
1 parent b762862 commit 274a6ae

File tree

57 files changed

+74
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+74
-74
lines changed

AccessMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AccessMap implements AccessMapInterface
2828
* @param array $attributes An array of attributes to pass to the access decision manager (like roles)
2929
* @param string|null $channel The channel to enforce (http, https, or null)
3030
*/
31-
public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], string $channel = null)
31+
public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], ?string $channel = null)
3232
{
3333
$this->map[] = [$requestMatcher, $attributes, $channel];
3434
}

Authentication/AuthenticatorManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class AuthenticatorManager implements AuthenticatorManagerInterface, UserAuthent
5858
/**
5959
* @param iterable<mixed, AuthenticatorInterface> $authenticators
6060
*/
61-
public function __construct(iterable $authenticators, TokenStorageInterface $tokenStorage, EventDispatcherInterface $eventDispatcher, string $firewallName, LoggerInterface $logger = null, bool $eraseCredentials = true, bool $hideUserNotFoundExceptions = true, array $requiredBadges = [])
61+
public function __construct(iterable $authenticators, TokenStorageInterface $tokenStorage, EventDispatcherInterface $eventDispatcher, string $firewallName, ?LoggerInterface $logger = null, bool $eraseCredentials = true, bool $hideUserNotFoundExceptions = true, array $requiredBadges = [])
6262
{
6363
$this->authenticators = $authenticators;
6464
$this->tokenStorage = $tokenStorage;

Authentication/DefaultAuthenticationFailureHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandle
4242
'failure_path_parameter' => '_failure_path',
4343
];
4444

45-
public function __construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = [], LoggerInterface $logger = null)
45+
public function __construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = [], ?LoggerInterface $logger = null)
4646
{
4747
$this->httpKernel = $httpKernel;
4848
$this->httpUtils = $httpUtils;

Authentication/DefaultAuthenticationSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class DefaultAuthenticationSuccessHandler implements AuthenticationSuccessHandle
4646
/**
4747
* @param array $options Options for processing a successful authentication attempt
4848
*/
49-
public function __construct(HttpUtils $httpUtils, array $options = [], LoggerInterface $logger = null)
49+
public function __construct(HttpUtils $httpUtils, array $options = [], ?LoggerInterface $logger = null)
5050
{
5151
$this->httpUtils = $httpUtils;
5252
$this->logger = $logger;

Authenticator/AbstractLoginFormAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
6262
* Override to control what happens when the user hits a secure page
6363
* but isn't logged in yet.
6464
*/
65-
public function start(Request $request, AuthenticationException $authException = null): Response
65+
public function start(Request $request, ?AuthenticationException $authException = null): Response
6666
{
6767
$url = $this->getLoginUrl($request);
6868

Authenticator/AbstractPreAuthenticatedAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ abstract class AbstractPreAuthenticatedAuthenticator implements InteractiveAuthe
4242
private $firewallName;
4343
private $logger;
4444

45-
public function __construct(UserProviderInterface $userProvider, TokenStorageInterface $tokenStorage, string $firewallName, LoggerInterface $logger = null)
45+
public function __construct(UserProviderInterface $userProvider, TokenStorageInterface $tokenStorage, string $firewallName, ?LoggerInterface $logger = null)
4646
{
4747
$this->userProvider = $userProvider;
4848
$this->tokenStorage = $tokenStorage;

Authenticator/Debug/TraceableAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
8686
return $this->authenticator->onAuthenticationFailure($request, $exception);
8787
}
8888

89-
public function start(Request $request, AuthenticationException $authException = null): Response
89+
public function start(Request $request, ?AuthenticationException $authException = null): Response
9090
{
9191
if (!$this->authenticator instanceof AuthenticationEntryPointInterface) {
9292
throw new NotAnEntryPointException();

Authenticator/FormLoginAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function setHttpKernel(HttpKernelInterface $httpKernel): void
169169
$this->httpKernel = $httpKernel;
170170
}
171171

172-
public function start(Request $request, AuthenticationException $authException = null): Response
172+
public function start(Request $request, ?AuthenticationException $authException = null): Response
173173
{
174174
if (!$this->options['use_forward']) {
175175
return parent::start($request, $authException);

Authenticator/HttpBasicAuthenticator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ class HttpBasicAuthenticator implements AuthenticatorInterface, AuthenticationEn
3838
private $userProvider;
3939
private $logger;
4040

41-
public function __construct(string $realmName, UserProviderInterface $userProvider, LoggerInterface $logger = null)
41+
public function __construct(string $realmName, UserProviderInterface $userProvider, ?LoggerInterface $logger = null)
4242
{
4343
$this->realmName = $realmName;
4444
$this->userProvider = $userProvider;
4545
$this->logger = $logger;
4646
}
4747

48-
public function start(Request $request, AuthenticationException $authException = null): Response
48+
public function start(Request $request, ?AuthenticationException $authException = null): Response
4949
{
5050
$response = new Response();
5151
$response->headers->set('WWW-Authenticate', sprintf('Basic realm="%s"', $this->realmName));

Authenticator/JsonLoginAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class JsonLoginAuthenticator implements InteractiveAuthenticatorInterface
5858
*/
5959
private $translator;
6060

61-
public function __construct(HttpUtils $httpUtils, UserProviderInterface $userProvider, AuthenticationSuccessHandlerInterface $successHandler = null, AuthenticationFailureHandlerInterface $failureHandler = null, array $options = [], PropertyAccessorInterface $propertyAccessor = null)
61+
public function __construct(HttpUtils $httpUtils, UserProviderInterface $userProvider, ?AuthenticationSuccessHandlerInterface $successHandler = null, ?AuthenticationFailureHandlerInterface $failureHandler = null, array $options = [], ?PropertyAccessorInterface $propertyAccessor = null)
6262
{
6363
$this->options = array_merge(['username_path' => 'username', 'password_path' => 'password'], $options);
6464
$this->httpUtils = $httpUtils;

0 commit comments

Comments
 (0)