src/Jedrzej/Searchable/SearchableTrait.php
protected function validateFieldNames(array $query) {
        foreach ($query as $field => $values) {
            if (!preg_match('/^!?[a-zA-Z0-9\-_:]+$/', $field)) {
                throw new InvalidArgumentException(sprintf('Incorrect field name: %s', $field));
            }
        }
    }
protected function validateFieldNames(array $query) {
        foreach ($query as $field => $values) {
            if (!preg_match('/^!?[a-zA-Z0-9\-_:]+$/', $field)) {
                throw new InvalidArgumentException(sprintf('Incorrect field name: %s', $field));
            }
        }
    }
protected function validateFieldNames ( array $ query ) { foreach ( $ query as $ field => $ values ) { if ( ! preg_match ( '/^!?[a-zA-Z0-9\-_:]+$/' , $ field ) ) { throw new InvalidArgumentException ( sprintf ( 'Incorrect field name: %s' , $ field ) ) ; } } }
Makes sure field names contain only allowed characters

@param array $query
Makes sure field names contain only allowed characters