|
@@ -48,10 +48,10 @@ class Until {
|
|
|
return json_decode(json_encode($data), true);
|
|
|
}
|
|
|
|
|
|
- public static function check(array $rule, array $data): void {
|
|
|
+ public static function check(array $rule, array $data) {
|
|
|
$validate = new Validate();
|
|
|
if (!$validate->check($data, $rule)) {
|
|
|
- self::output([],$validate->getError(),Enum::THROW_ERR_CODE);
|
|
|
+ self::output([],(string)$validate->getError(),Enum::THROW_ERR_CODE);
|
|
|
}
|
|
|
}
|
|
|
|