src/Leevel/Validate/Validator.php
protected function hasFieldRuleWithoutParameterReal(string $field, $rules): bool
    {
        if (!isset($this->rules[$field])) {
            return false;
        }

        $rules = (array) $rules;

        foreach ($rules as $rule) {
            if (in_array($rule, $this->rules[$field], true)) {
                return true;
            }
        }

        return false;
    }
protected function hasFieldRuleWithoutParameterReal(string $field, $rules): bool
    {
        if (!isset($this->rules[$field])) {
            return false;
        }

        $rules = (array) $rules;

        foreach ($rules as $rule) {
            if (in_array($rule, $this->rules[$field], true)) {
                return true;
            }
        }

        return false;
    }
是否存在单个字段验证规则
不带条件的简单规则.

@param string $field
@param mixed  $rules

@return bool