Skip to content

Commit 7fa37ca

Browse files
authored
Merge pull request #309 from hypervel/hotfix/fix-view-path-dump-source
fix: fix nullable view path in dump source
2 parents 42f0c3b + 3764919 commit 7fa37ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/foundation/src/Concerns/ResolvesDumpSource.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ public function resolveDumpSource(): ?array
117117
*/
118118
protected function isCompiledViewFile(string $file): bool
119119
{
120+
if (! $this->compiledViewPath) {
121+
return false;
122+
}
123+
120124
return str_starts_with($file, $this->compiledViewPath) && str_ends_with($file, '.php');
121125
}
122126

0 commit comments

Comments
 (0)