Skip to content

Commit

Permalink
fix(precompiler): fixing bug in precompiler when blade path is null (#48
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joaopalopes24 authored Sep 11, 2023
1 parent e0f16eb commit 284a60d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Precompilers/ExtractTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function __invoke(string $template): string
*/
protected function shouldExtractTemplate(string $template): bool
{
return $this->mountedDirectories->isWithinMountedDirectory(Blade::getPath());
if (is_null($path = Blade::getPath())) {
return false;
}

return $this->mountedDirectories->isWithinMountedDirectory($path);
}

/**
Expand Down

0 comments on commit 284a60d

Please sign in to comment.