diff --git a/src/DebugBar/Bridge/DoctrineCollector.php b/src/DebugBar/Bridge/DoctrineCollector.php index a821609b..2eea2804 100644 --- a/src/DebugBar/Bridge/DoctrineCollector.php +++ b/src/DebugBar/Bridge/DoctrineCollector.php @@ -86,11 +86,13 @@ public function getParameters($query) : array 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'] ?? []);