public function parseLiteral($valueNode, ?array $variables = null)
    {
        if ($valueNode instanceof IntValueNode) {
            $val = (int) $valueNode->value;
            if ($valueNode->value === (string) $val && self::MIN_INT <= $val && $val <= self::MAX_INT) {
                return $val;
            }
        }

        // Intentionally without message, as all information already in wrapped Exception
        throw new Exception();
    }
public function parseLiteral($valueNode, ?array $variables = null)
    {
        if ($valueNode instanceof IntValueNode) {
            $val = (int) $valueNode->value;
            if ($valueNode->value === (string) $val && self::MIN_INT <= $val && $val <= self::MAX_INT) {
                return $val;
            }
        }

        
        throw new Exception();
    }
public function parseLiteral ( $ valueNode , ? array $ variables = null ) { if ( $ valueNode instanceof IntValueNode ) { $ val = ( int ) $ valueNode -> value ; if ( $ valueNode -> value === ( string ) $ val && self :: MIN_INT <= $ val && $ val <= self :: MAX_INT ) { return $ val ; } } // Intentionally without message, as all information already in wrapped Exception throw new Exception ( ) ; }
@param Node         $valueNode
@param mixed[]|null $variables

@return int|null

@throws Exception
@param Node $valueNode @param mixed [] |null $variables