验证类的验证方法支持第五个title参数传入

This commit is contained in:
thinkphp
2016-12-14 16:57:15 +08:00
parent 08c3be7c4c
commit d96c39cb1c

View File

@@ -390,7 +390,7 @@ class Validate
// 验证类型
$callback = isset(self::$type[$type]) ? self::$type[$type] : [$this, $type];
// 验证数据
$result = call_user_func_array($callback, [$value, $rule, $data, $field]);
$result = call_user_func_array($callback, [$value, $rule, $data, $field, $title]);
} else {
$result = true;
}