Skip to content

Commit

Permalink
Check if request controller is string (#1751)
Browse files Browse the repository at this point in the history
Fixes #1747
  • Loading branch information
barryvdh authored Feb 25, 2025
1 parent b41bbd8 commit 0bc1e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataCollector/RequestCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ protected function getRouteInformation($route)
$reflector->getEndLine()
);

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

0 comments on commit 0bc1e13

Please sign in to comment.