You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
date校验有个bug
若给定的入参类型为int时,执行strtotime则会报错strtotime(): Argument #1 ($datetime) must be of type string, int given
在执行strtotime需要对value做(string)$value
Validate.php:1179 'date' => false !== strtotime((string)$value),
integer校验规则对1989.9999999999998这样的数字无效,建议改成is_int,同理还有其它filter_var验证的规则都建议改成对应的函数判断
另外可以增加一个有序数组验证规则,使用array_is_list判断.
The text was updated successfully, but these errors were encountered: