mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
Fix array to string converstion
(#681)
This commit is contained in:
parent
b210445e32
commit
bac734286d
@ -86,11 +86,13 @@ class DoctrineCollector extends DataCollector implements Renderable, AssetProvid
|
||||
if (is_string($param)) {
|
||||
return htmlentities($param, ENT_QUOTES, 'UTF-8', false);
|
||||
} elseif (is_array($param)) {
|
||||
return implode(', ', $param);
|
||||
return '[' . implode(', ', $this->getParameters($param)) . ']';
|
||||
} elseif (is_numeric($param)) {
|
||||
return strval($param);
|
||||
} elseif ($param instanceof \DateTimeInterface) {
|
||||
return $param->format('Y-m-d H:i:s');
|
||||
} elseif (is_object($param)) {
|
||||
return json_encode($param);
|
||||
}
|
||||
return $param ?: '';
|
||||
}, $query['params'] ?? []);
|
||||
|
Loading…
x
Reference in New Issue
Block a user