Commit 808aafef authored by tg666's avatar tg666
Browse files

Fixed a bug related to float values in the TOML output

parent 526a53ef
......@@ -373,7 +373,13 @@ class TomlBuilder
private function dumpFloat(float $val) : string
{
return strval($val);
$result = strval($val);
if ($val == floor($val)) {
$result .= '.0';
}
return $result;
}
private function isStringValid(string $val) : bool
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment