Skip to content

Commit 86af350

Browse files
authored
Fix exclude_paths on ViewCollector (#1577)
1 parent 4355550 commit 86af350

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DataCollector/ViewCollector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ public function addView(View $view)
8181
}
8282
}
8383

84+
$shortPath = $this->normalizeFilePath($path);
8485
foreach ($this->exclude_paths as $excludePath) {
85-
if (str_starts_with($path, $excludePath)) {
86+
if (str_starts_with($shortPath, $excludePath)) {
8687
return;
8788
}
8889
}

0 commit comments

Comments
 (0)