src/Leevel/Validate/Validator.php
protected function addFailure(string $field, string $rule, array $parameter): void
    {
        $this->addError($field, $rule, $parameter);

        $this->failedRules[$field][$rule] = $parameter;
    }
protected function addFailure(string $field, string $rule, array $parameter): void
    {
        $this->addError($field, $rule, $parameter);

        $this->failedRules[$field][$rule] = $parameter;
    }
添加错误规则和验证错误消息.

@param string $field
@param string $rule
@param array  $parameter