public function quoteArray(array $array): array
    {
        if (empty($array)) {
            return [];
        }
        foreach ($array as $key => $value) {
            if ($value instanceof RawExp) {
                $array[$key] = $value->getValue();
                continue;
            }

            $array[$key] = $this->quoteValue($value);
        }

        return $array;
    }