Unverified Commit 66a23c34 authored by Yo! Symfony's avatar Yo! Symfony Committed by GitHub
Browse files

Merge pull request #30 from tg666/fix/dump-float

Fixed a bug related to float values in the TOML output
parents 526a53ef 808aafef
......@@ -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