-
Notifications
You must be signed in to change notification settings - Fork 513
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
验证器无法验证数组 #517
Comments
好的,这边测试下。感谢反馈。 |
这边测试是可以验证的啊,请您提供详细的调用代码。 <?php
require_once __DIR__ . '/vendor/autoload.php';
$validate = new \EasySwoole\Validate\Validate();
$validate->addColumn('inputs')->isArray('not array!');
$bool = $validate->validate([
'inputs' => [
[
'address' => '1',
'amount' => '2'
],
[
'address' => '3',
'amount' => '4'
],
]
]);
var_dump($bool); // true
var_dump($validate->getError()); // NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: