Skip to content

Commit

Permalink
Fix $query['params'] can be "null" (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 authored Sep 6, 2024
1 parent 43aafef commit 643767a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DebugBar/Bridge/DoctrineCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function collect()
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;
Expand Down

0 comments on commit 643767a

Please sign in to comment.