Skip to content

Commit 1e7ddcc

Browse files
authored
Check if view path is set (#1552)
1 parent 05ca031 commit 1e7ddcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataCollector/ViewCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function addView(View $view)
125125
'hash' => $hash,
126126
];
127127

128-
if ($this->getXdebugLinkTemplate()) {
128+
if ($view->getPath() && $this->getXdebugLinkTemplate()) {
129129
$template['xdebug_link'] = $this->getXdebugLink(realpath($view->getPath()));
130130
}
131131

0 commit comments

Comments
 (0)