mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 13:00:42 +01:00
Fix $query['params']
can be "null" (#663)
This commit is contained in:
parent
43aafef83d
commit
643767a32f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user