mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-23 05:16:05 +03:00
Reverted float literal parsing, as it was not the cause of #125
This commit is contained in:
parent
8c9a2a5f12
commit
bc6c0e2eea
@ -67,7 +67,7 @@ values as specified by
|
|||||||
public function parseLiteral($ast)
|
public function parseLiteral($ast)
|
||||||
{
|
{
|
||||||
if ($ast instanceof FloatValueNode || $ast instanceof IntValueNode) {
|
if ($ast instanceof FloatValueNode || $ast instanceof IntValueNode) {
|
||||||
return is_numeric($ast->value) ? (float) $ast->value : null;
|
return (float) $ast->value;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user