diff --git a/src/foundation/src/Concerns/ResolvesDumpSource.php b/src/foundation/src/Concerns/ResolvesDumpSource.php index 4885b3c73..f3129c922 100644 --- a/src/foundation/src/Concerns/ResolvesDumpSource.php +++ b/src/foundation/src/Concerns/ResolvesDumpSource.php @@ -117,6 +117,10 @@ public function resolveDumpSource(): ?array */ protected function isCompiledViewFile(string $file): bool { + if (! $this->compiledViewPath) { + return false; + } + return str_starts_with($file, $this->compiledViewPath) && str_ends_with($file, '.php'); }