Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BasePathDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BasePathDetector
* @param array<mixed> $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;
Expand Down
2 changes: 1 addition & 1 deletion src/BasePathMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down