Skip to content

Commit 7e3e5ff

Browse files
committed
Init
1 parent 36a1a36 commit 7e3e5ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/BasePathDetector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class BasePathDetector
2121
* The constructor.
2222
*
2323
* @param array $server The SERVER data to use
24-
* @param string $phpSapi The PHP_SAPI value
24+
* @param string|null $phpSapi The PHP_SAPI value
2525
*/
26-
public function __construct(array $server, string $phpSapi)
26+
public function __construct(array $server, string $phpSapi = null)
2727
{
2828
$this->server = $server;
29-
$this->phpSapi = $phpSapi;
29+
$this->phpSapi = $phpSapi ?? PHP_SAPI;
3030
}
3131

3232
/**

0 commit comments

Comments
 (0)