From 37649192ebaff162f4db9c064098baae831366ae Mon Sep 17 00:00:00 2001 From: Albert Chen Date: Tue, 23 Dec 2025 21:31:43 +0800 Subject: [PATCH] fix: fix nullable view path in dump source --- src/foundation/src/Concerns/ResolvesDumpSource.php | 4 ++++ 1 file changed, 4 insertions(+) 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'); }