diff --git a/src/DebugBar/Bridge/DoctrineCollector.php b/src/DebugBar/Bridge/DoctrineCollector.php index 3a3f60b..d33b7c9 100644 --- a/src/DebugBar/Bridge/DoctrineCollector.php +++ b/src/DebugBar/Bridge/DoctrineCollector.php @@ -83,7 +83,7 @@ class DoctrineCollector extends DataCollector implements Renderable, AssetProvid public function getParameters($query) : array { $params = []; - foreach ($query['params'] as $name => $param) { + foreach ($query['params'] ?? [] as $name => $param) { $params[$name] = htmlentities($param?:"", ENT_QUOTES, 'UTF-8', false); } return $params;