1
0
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:
erikn69 2024-09-06 09:20:03 -05:00 committed by GitHub
parent 43aafef83d
commit 643767a32f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;