From 9a451b5a4c4f28dbb9e41b0ed809e7528409a133 Mon Sep 17 00:00:00 2001 From: Sven Mitt Date: Wed, 19 Mar 2025 08:37:34 +0200 Subject: [PATCH] Fix warning Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead WE2-918 Signed-off-by: Sven Mitt --- src/validator/ocsp/OcspClientImpl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validator/ocsp/OcspClientImpl.php b/src/validator/ocsp/OcspClientImpl.php index 503a0e5..31c4648 100644 --- a/src/validator/ocsp/OcspClientImpl.php +++ b/src/validator/ocsp/OcspClientImpl.php @@ -37,13 +37,13 @@ class OcspClientImpl implements OcspClient private int $requestTimeout; private $logger; - public function __construct(int $ocspRequestTimeout, LoggerInterface $logger = null) + public function __construct(int $ocspRequestTimeout, ?LoggerInterface $logger = null) { $this->requestTimeout = $ocspRequestTimeout; $this->logger = $logger; } - public static function build(int $ocspRequestTimeout, LoggerInterface $logger = null): OcspClient + public static function build(int $ocspRequestTimeout, ?LoggerInterface $logger = null): OcspClient { return new OcspClientImpl($ocspRequestTimeout, $logger); }