Skip to content

Commit 845e6f1

Browse files
Fix nullable type for PHP 8.4 (#18)
1 parent c332fc7 commit 845e6f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BasePathDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BasePathDetector
2323
* @param array<mixed> $server The SERVER data to use
2424
* @param string|null $phpSapi The PHP_SAPI value
2525
*/
26-
public function __construct(array $server, string $phpSapi = null)
26+
public function __construct(array $server, ?string $phpSapi = null)
2727
{
2828
$this->server = $server;
2929
$this->phpSapi = $phpSapi ?? PHP_SAPI;

src/BasePathMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class BasePathMiddleware implements MiddlewareInterface
2929
* @param App $app The slim app
3030
* @param string|null $phpSapi The PHP_SAPI value
3131
*/
32-
public function __construct(App $app, string $phpSapi = null)
32+
public function __construct(App $app, ?string $phpSapi = null)
3333
{
3434
$this->app = $app;
3535
$this->phpSapi = $phpSapi;

0 commit comments

Comments
 (0)