Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复自定义msg数组形式的无效果 #56

Merged
merged 1 commit into from
Jul 23, 2022
Merged

修复自定义msg数组形式的无效果 #56

merged 1 commit into from
Jul 23, 2022

Conversation

nelsonsun
Copy link
Collaborator

@nelsonsun nelsonsun commented Jul 23, 2022

修复自定义msg数组形式的无效果 #55

<?php

include "./vendor/autoload.php";

$v = \Inhere\Validate\Validation::make(data: [
    'title' => '', 
    'name' => '', 
], rules: array(
    ['title,name', 'required', 'msg' => [
        'title' => '标题不能为空。',
        'name' => '姓名不能为空。',
    ]], 
))->validate(
    stopOnError: !true
);
if ($v->isFail()) {
    var_dump($v->getErrors());
};

图片

@nelsonsun nelsonsun changed the title 修复自定义msg数组形式的无效果 #55 #55 修复自定义msg数组形式的无效果 Jul 23, 2022
@nelsonsun nelsonsun changed the title #55 修复自定义msg数组形式的无效果 修复自定义msg数组形式的无效果 Jul 23, 2022
@nelsonsun nelsonsun merged commit 654765b into inhere:master Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants