From b210445e329f9533435f7eaf3ea6a9af1a3edb6c Mon Sep 17 00:00:00 2001 From: Alius Date: Wed, 11 Sep 2024 11:38:45 +0300 Subject: [PATCH] Fix parameter output if parameter is zero (#679) --- src/DebugBar/Bridge/DoctrineCollector.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DebugBar/Bridge/DoctrineCollector.php b/src/DebugBar/Bridge/DoctrineCollector.php index 1482bd45..a821609b 100644 --- a/src/DebugBar/Bridge/DoctrineCollector.php +++ b/src/DebugBar/Bridge/DoctrineCollector.php @@ -87,6 +87,8 @@ public function getParameters($query) : array return htmlentities($param, ENT_QUOTES, 'UTF-8', false); } elseif (is_array($param)) { return implode(', ', $param); + } elseif (is_numeric($param)) { + return strval($param); } elseif ($param instanceof \DateTimeInterface) { return $param->format('Y-m-d H:i:s'); }