Skip to content

Commit

Permalink
Fix uncaught TypeError when docs path not found (#5725) (#5726)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarttiR committed Aug 9, 2023
1 parent 1d39b54 commit 30627b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Config/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30627b5

Please sign in to comment.