php-validate icon indicating copy to clipboard operation
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验证、过滤库。支持场景...

Results 15 php-validate issues
Sort by recently updated
recently updated
newest added
trafficstars

现在有个场景,在参数约定remark字段为字符串,但自动化测试时remark给到了null,并没有触发string的校验,哪怕新写一个customStringValidator也不会触发: ![image](https://github.com/inhere/php-validate/assets/40883716/5276d061-f841-44f7-abdb-bc95c460b752) ![image](https://github.com/inhere/php-validate/assets/40883716/04a47621-1033-425a-8e3f-aed13309f81c) 这是service层参数打印: ![image](https://github.com/inhere/php-validate/assets/40883716/b1d14d0a-173a-49e8-b701-e0829962bb6b) 参数校验是放controller上,说明入参字段为null时,并不会触发验证器 注:验证器继承的是:Inhere\Validate\FieldValidation

question

代码: ``` $post = array( 'prop' => [ 'money' => '22.4', ], ); $rules = array( ['prop.money', 'float', 'min' => .1, 'filter' => 'float', 'msg' => '属性金额不能小于0.1元。'], ); $v =...

有解决办法吗,或者是我哪里使用错误了

question

![image](https://github.com/inhere/php-validate/assets/40883716/c138046f-25ad-4e1f-911f-4450e14b61f7) 当然,仅限个人看法

question

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...

dependencies
php