diff --git a/src/Config/Environment.php b/src/Config/Environment.php index 654a5c3011..6d7d0b21dc 100644 --- a/src/Config/Environment.php +++ b/src/Config/Environment.php @@ -287,7 +287,8 @@ public function setSharePrefix(string $sharePrefix): self public function docsPath(): ?string { if (!$this->docPrefix) { - $this->docPrefix = $this->findDocsPath($this->drushBasePath); + $foundPath = $this->findDocsPath($this->drushBasePath); + $this->docPrefix = $foundPath ?: null; } return $this->docPrefix; }