Skip to content

Commit

Permalink
Fix initialization warning
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Dec 10, 2022
1 parent add14eb commit 3c45869
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/Tree/Root.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Root extends Directory
{
protected Config $config;

protected Entry $activeNode;
protected ?Entry $activeNode;

/**
* The root doesn't have a parent.
Expand All @@ -17,6 +17,8 @@ public function __construct(Config $config)

$this->setUri($config->getDocumentationDirectory());
$this->path = $config->getDocumentationDirectory();

$this->activeNode = null;
}

public function getConfig(): Config
Expand Down

0 comments on commit 3c45869

Please sign in to comment.