Reverted float literal parsing, as it was not the cause of #125

This commit is contained in:
Vladimir Razuvaev 2017-06-03 16:48:29 +07:00
parent 8c9a2a5f12
commit bc6c0e2eea

View File

@ -67,7 +67,7 @@ values as specified by
public function parseLiteral($ast)
{
if ($ast instanceof FloatValueNode || $ast instanceof IntValueNode) {
return is_numeric($ast->value) ? (float) $ast->value : null;
return (float) $ast->value;
}
return null;
}