Skip to content

Commit 0bc1e13

Browse files
authored
Check if request controller is string (#1751)
Fixes #1747
1 parent b41bbd8 commit 0bc1e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataCollector/RequestCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ protected function getRouteInformation($route)
272272
$reflector->getEndLine()
273273
);
274274

275-
if (isset($result['controller'])) {
275+
if (isset($result['controller']) && is_string($result['controller'])) {
276276
$result['controller'] .= '<a href="'.$link['url'].'" class="phpdebugbar-widgets-editor-link"></a>';
277277
}
278278
} else {

0 commit comments

Comments
 (0)