php-validate
php-validate copied to clipboard
Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景...
现在有个场景,在参数约定remark字段为字符串,但自动化测试时remark给到了null,并没有触发string的校验,哪怕新写一个customStringValidator也不会触发:   这是service层参数打印:  参数校验是放controller上,说明入参字段为null时,并不会触发验证器 注:验证器继承的是:Inhere\Validate\FieldValidation
代码: ``` $post = array( 'prop' => [ 'money' => '22.4', ], ); $rules = array( ['prop.money', 'float', 'min' => .1, 'filter' => 'float', 'msg' => '属性金额不能小于0.1元。'], ); $v =...
 当然,仅限个人看法
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version. Changelog Sourced from phpunit/phpunit's changelog. [10.0.4] - 2023-02-05 Fixed #5169: Parameter type for constructor of GreaterThan and LessThan constraints does...