Skip to content

Commit bc6c0e2

Browse files
committed
Reverted float literal parsing, as it was not the cause of #125
1 parent 8c9a2a5 commit bc6c0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Definition/FloatType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function coerceFloat($value)
6767
public function parseLiteral($ast)
6868
{
6969
if ($ast instanceof FloatValueNode || $ast instanceof IntValueNode) {
70-
return is_numeric($ast->value) ? (float) $ast->value : null;
70+
return (float) $ast->value;
7171
}
7272
return null;
7373
}

0 commit comments

Comments
 (0)