From b0fbd0f9b6559eb96da378618fba8c9b7e768ddc Mon Sep 17 00:00:00 2001 From: Michael Bolli Date: Fri, 15 Nov 2024 17:05:26 +0100 Subject: [PATCH] fix PHP 8.4 deprecation error (implicitly nullable parameter) --- src/TrailingSlash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TrailingSlash.php b/src/TrailingSlash.php index db5caa1..f247e31 100644 --- a/src/TrailingSlash.php +++ b/src/TrailingSlash.php @@ -33,7 +33,7 @@ public function __construct(bool $trailingSlash = false) /** * Whether returns a 301 response to the new path. */ - public function redirect(ResponseFactoryInterface $responseFactory = null): self + public function redirect(?ResponseFactoryInterface $responseFactory = null): self { $this->responseFactory = $responseFactory ?: Factory::getResponseFactory();