Skip to content

为什么getErrors只抛出一条异常信息? #54

@juvenrui

Description

@juvenrui

$v = \Inhere\Validate\Validation::check([
'title' => 'loggerSaveTime',
'age' => 2,
], [
['title', 'min', 30, 'msg' => '标题字数无效!'],
['age', 'int', 'min'=>4, 'max'=>16, 'msg' => '{attr} error!'],
]);
if ($v->isFail()) {
var_dump($v->getErrors());
//var_dump($v->firstError(!false));
}

getErrors只抛出一条异常信息:

截屏2022-07-17 12 07 06

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions