Respect / Validation

The most awesome validation engine ever created for PHP
https://respect-validation.readthedocs.io
MIT License
5.79k stars 776 forks source link

Only define filter_var options when it is valid #1324

Closed henriquemoody closed 4 years ago

henriquemoody commented 4 years ago

The third argument of "filter_var" must be either an integer or an array. On PHP 8 this "FilterVar" rule fails because we always pass that argument, even if it is null.