mirror of
https://github.com/leonelquinteros/php-toml.git
synced 2025-01-29 09:47:39 +01:00
fix convert int to float issue
This commit is contained in:
parent
a24ca62c9e
commit
784d8c7bf4
@ -557,7 +557,7 @@ class Toml
|
||||
{
|
||||
$val = str_replace('_', '', $val);
|
||||
|
||||
if(is_int($val))
|
||||
if(ctype_digit($val))
|
||||
{
|
||||
$parsedVal = (int) $val;
|
||||
}
|
||||
|
@ -249,3 +249,5 @@ color = "gray"
|
||||
|
||||
[user.contributed.cases]
|
||||
slashes="SERVER\\MASTER"
|
||||
|
||||
foo = [1,2,3.1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user