Skip to content

Commit

Permalink
Fix parameter output if parameter is zero (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliusa committed Sep 11, 2024
1 parent 0b40a63 commit b210445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DebugBar/Bridge/DoctrineCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit b210445

Please sign in to comment.