From bc6c0e2eea6dd0ffe2d1d38a6bbac632a2f150b4 Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Sat, 3 Jun 2017 16:48:29 +0700 Subject: [PATCH] Reverted float literal parsing, as it was not the cause of #125 --- src/Type/Definition/FloatType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/Definition/FloatType.php b/src/Type/Definition/FloatType.php index fb6ce02..363ce27 100644 --- a/src/Type/Definition/FloatType.php +++ b/src/Type/Definition/FloatType.php @@ -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; }