Wixel / GUMP

A fast, extensible & stand-alone PHP input validation class that allows you to validate any data
https://wixelhq.com
MIT License
1.17k stars 341 forks source link

Added the ability to configure which validators are of type "required" #346

Open jefersonralmeida opened 1 year ago

jefersonralmeida commented 1 year ago

Closes #345

Basically, I've converted the variable $require_type_of_rules (that was a hard-coded list of rules that will run even when the field is not present on the input) to a public static property into the configuration section (meaning that those values will be configurable when extending the GUMP class).