Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ class Context implements ContextAware
*/
private $_parent;

public final function __construct(Request $request = null)
public final function __construct(?Request $request = null)
{
// Give this context an ID
$this->_id = $this->_generateId();
$this->_request = $request;
$this->_construct();
}

public static function create(string $projectRoot = null, string $environment = null, Request $request = null)
public static function create(?string $projectRoot = null, ?string $environment = null, ?Request $request = null)
{
$ctx = new static($request);
if($projectRoot !== null)
Expand Down