@@ -257,10 +257,10 @@ public function validate(array $onlyChecked = [], bool $stopOnError = null)
257257 }
258258
259259 /**
260- * field require Validate 字段存在检查
260+ * field require/exists validate 字段存在检查
261261 * @param string $field Attribute name
262262 * @param mixed $value Attribute value
263- * @param string $validator required* 验证器
263+ * @param string $validator required* Validator name
264264 * @param array $args Verify the required parameters
265265 * @param string|array $defMsg
266266 * @return bool|null
@@ -279,7 +279,7 @@ protected function fieldValidate(string $field, $value, string $validator, array
279279 } elseif (self ::isCheckFile ($ validator )) {
280280 $ passed = $ this ->$ validator ($ field , ...\array_values ($ args ));
281281
282- // 其他 required* 方法
282+ // other required* methods
283283 } elseif (\method_exists ($ this , $ validator )) {
284284 $ passed = $ this ->$ validator ($ field , $ value , ...\array_values ($ args ));
285285 } else {
@@ -301,11 +301,11 @@ protected function fieldValidate(string $field, $value, string $validator, array
301301 }
302302
303303 /**
304- * value Validate 字段值验证
305- * @param string $field 属性名称
306- * @param mixed $value 属性值
307- * @param \Closure|string|mixed $validator 验证器
308- * @param array $args 验证需要的参数
304+ * field value validate 字段值验证
305+ * @param string $field Field name
306+ * @param mixed $value Field value
307+ * @param \Closure|string|mixed $validator Validator
308+ * @param array $args Arguments for validate
309309 * @param string $defMsg
310310 * @return bool
311311 * @throws \InvalidArgumentException
@@ -466,7 +466,7 @@ protected function prepareRule(array &$rule)
466466 case 'between ' :
467467 // fixed: 当只有 max 时,自动补充一个 min
468468 if (isset ($ rule ['max ' ]) && !isset ($ rule ['min ' ])) {
469- $ rule ['min ' ] = PHP_INT_MIN ;
469+ $ rule ['min ' ] = \ PHP_INT_MIN ;
470470 }
471471 break ;
472472 }
0 commit comments