We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c9a2a5 commit bc6c0e2Copy full SHA for bc6c0e2
src/Type/Definition/FloatType.php
@@ -67,7 +67,7 @@ private function coerceFloat($value)
67
public function parseLiteral($ast)
68
{
69
if ($ast instanceof FloatValueNode || $ast instanceof IntValueNode) {
70
- return is_numeric($ast->value) ? (float) $ast->value : null;
+ return (float) $ast->value;
71
}
72
return null;
73
0 commit comments