From 2e47707172921085818abe31c589159d5af4f3fe Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Thu, 21 Nov 2024 16:37:22 +0100 Subject: [PATCH] feat: fix deprecation for implicit nullable parameter declarations --- src/EventListener/BlameListener.php | 2 +- src/EventListener/LoggerListener.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventListener/BlameListener.php b/src/EventListener/BlameListener.php index 5908605e..879fddcc 100644 --- a/src/EventListener/BlameListener.php +++ b/src/EventListener/BlameListener.php @@ -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; diff --git a/src/EventListener/LoggerListener.php b/src/EventListener/LoggerListener.php index 79f91c35..dc06044b 100644 --- a/src/EventListener/LoggerListener.php +++ b/src/EventListener/LoggerListener.php @@ -28,7 +28,7 @@ class LoggerListener implements EventSubscriberInterface /** * @param LoggableListener $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;