Skip to content

Commit

Permalink
feat: fix deprecation for implicit nullable parameter declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Nov 21, 2024
1 parent 99a7dac commit 2e47707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EventListener/BlameListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BlameListener implements EventSubscriberInterface
private ?TokenStorageInterface $tokenStorage;
private BlameableListener $blameableListener;

public function __construct(BlameableListener $blameableListener, TokenStorageInterface $tokenStorage = null, AuthorizationCheckerInterface $authorizationChecker = null)
public function __construct(BlameableListener $blameableListener, ?TokenStorageInterface $tokenStorage = null, ?AuthorizationCheckerInterface $authorizationChecker = null)
{
$this->blameableListener = $blameableListener;
$this->tokenStorage = $tokenStorage;
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/LoggerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class LoggerListener implements EventSubscriberInterface
/**
* @param LoggableListener<T> $loggableListener
*/
public function __construct(LoggableListener $loggableListener, TokenStorageInterface $tokenStorage = null, AuthorizationCheckerInterface $authorizationChecker = null)
public function __construct(LoggableListener $loggableListener, ?TokenStorageInterface $tokenStorage = null, ?AuthorizationCheckerInterface $authorizationChecker = null)
{
$this->loggableListener = $loggableListener;
$this->tokenStorage = $tokenStorage;
Expand Down

0 comments on commit 2e47707

Please sign in to comment.