From 49ee8ea7ffd87b915ed3e5a9d0231fe390655df4 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Tue, 27 May 2025 11:19:08 +0200 Subject: [PATCH] PHP8.4 support. PHP Deprecated: Implicitly marking parameter as nullable is deprecated. --- src/BasePathDetector.php | 2 +- src/BasePathMiddleware.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BasePathDetector.php b/src/BasePathDetector.php index 001d56d..a4f641f 100644 --- a/src/BasePathDetector.php +++ b/src/BasePathDetector.php @@ -23,7 +23,7 @@ class BasePathDetector * @param array $server The SERVER data to use * @param string|null $phpSapi The PHP_SAPI value */ - public function __construct(array $server, string $phpSapi = null) + public function __construct(array $server, ?string $phpSapi = null) { $this->server = $server; $this->phpSapi = $phpSapi ?? PHP_SAPI; diff --git a/src/BasePathMiddleware.php b/src/BasePathMiddleware.php index a76185b..d11a5a9 100644 --- a/src/BasePathMiddleware.php +++ b/src/BasePathMiddleware.php @@ -29,7 +29,7 @@ final class BasePathMiddleware implements MiddlewareInterface * @param App $app The slim app * @param string|null $phpSapi The PHP_SAPI value */ - public function __construct(App $app, string $phpSapi = null) + public function __construct(App $app, ?string $phpSapi = null) { $this->app = $app; $this->phpSapi = $phpSapi;