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 6fb62b2 commit 4eb68bfCopy full SHA for 4eb68bf
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 (float) $ast->value;
+ return is_numeric($ast->value) ? (float) $ast->value : null;
71
}
72
return null;
73
0 commit comments