Skip to content

Commit

Permalink
Fix deprecation messages Implicitly marking parameter as nullable is …
Browse files Browse the repository at this point in the history
…deprecated, the explicit nullable type must be used instead
  • Loading branch information
klapaudius committed Dec 20, 2024
1 parent b2f5217 commit 42f1a0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Form/Handler/AuthorizeFormHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(FormInterface $form, $requestStack = null)
*
* @param ContainerInterface|null $container A ContainerInterface instance or null
*/
public function setContainer(ContainerInterface $container = null)
public function setContainer(?ContainerInterface $container = null)
{
$this->container = $container;
}
Expand Down
2 changes: 1 addition & 1 deletion Security/EntryPoint/OAuthEntryPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(OAuth2 $serverService)
$this->serverService = $serverService;
}

public function start(Request $request, AuthenticationException $authException = null): Response
public function start(Request $request, ?AuthenticationException $authException = null): Response
{
$exception = new OAuth2AuthenticateException(
Response::HTTP_UNAUTHORIZED,
Expand Down
4 changes: 2 additions & 2 deletions Storage/OAuthStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function __construct(
AccessTokenManagerInterface $accessTokenManager,
RefreshTokenManagerInterface $refreshTokenManager,
AuthCodeManagerInterface $authCodeManager,
UserProviderInterface $userProvider = null,
PasswordHasherFactoryInterface $passwordHasherFactory = null
?UserProviderInterface $userProvider = null,
?PasswordHasherFactoryInterface $passwordHasherFactory = null
) {
$this->clientManager = $clientManager;
$this->accessTokenManager = $accessTokenManager;
Expand Down

0 comments on commit 42f1a0e

Please sign in to comment.