mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-07 10:05:41 +02:00
Fix parameter output if parameter is zero (#679)
This commit is contained in:
@ -87,6 +87,8 @@ class DoctrineCollector extends DataCollector implements Renderable, AssetProvid
|
|||||||
return htmlentities($param, ENT_QUOTES, 'UTF-8', false);
|
return htmlentities($param, ENT_QUOTES, 'UTF-8', false);
|
||||||
} elseif (is_array($param)) {
|
} elseif (is_array($param)) {
|
||||||
return implode(', ', $param);
|
return implode(', ', $param);
|
||||||
|
} elseif (is_numeric($param)) {
|
||||||
|
return strval($param);
|
||||||
} elseif ($param instanceof \DateTimeInterface) {
|
} elseif ($param instanceof \DateTimeInterface) {
|
||||||
return $param->format('Y-m-d H:i:s');
|
return $param->format('Y-m-d H:i:s');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user