Skip to content

Commit 2e47707

Browse files
committed
feat: fix deprecation for implicit nullable parameter declarations
1 parent 99a7dac commit 2e47707

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/EventListener/BlameListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class BlameListener implements EventSubscriberInterface
2121
private ?TokenStorageInterface $tokenStorage;
2222
private BlameableListener $blameableListener;
2323

24-
public function __construct(BlameableListener $blameableListener, TokenStorageInterface $tokenStorage = null, AuthorizationCheckerInterface $authorizationChecker = null)
24+
public function __construct(BlameableListener $blameableListener, ?TokenStorageInterface $tokenStorage = null, ?AuthorizationCheckerInterface $authorizationChecker = null)
2525
{
2626
$this->blameableListener = $blameableListener;
2727
$this->tokenStorage = $tokenStorage;

src/EventListener/LoggerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class LoggerListener implements EventSubscriberInterface
2828
/**
2929
* @param LoggableListener<T> $loggableListener
3030
*/
31-
public function __construct(LoggableListener $loggableListener, TokenStorageInterface $tokenStorage = null, AuthorizationCheckerInterface $authorizationChecker = null)
31+
public function __construct(LoggableListener $loggableListener, ?TokenStorageInterface $tokenStorage = null, ?AuthorizationCheckerInterface $authorizationChecker = null)
3232
{
3333
$this->loggableListener = $loggableListener;
3434
$this->tokenStorage = $tokenStorage;

0 commit comments

Comments
 (0)