mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进Validate类的is方法,添加data参数的默认值
This commit is contained in:
@@ -480,9 +480,10 @@ class Validate
|
||||
* @access protected
|
||||
* @param mixed $value 字段值
|
||||
* @param string $rule 验证规则
|
||||
* @param array $data 验证数据
|
||||
* @return bool
|
||||
*/
|
||||
protected function is($value, $rule, $data)
|
||||
protected function is($value, $rule, $data = [])
|
||||
{
|
||||
switch ($rule) {
|
||||
case 'require':
|
||||
|
||||
Reference in New Issue
Block a user