Releases: vlucas/valitron
Releases · vlucas/valitron
v1.4.11
v1.4.10
- testing now runs as a github workflow
- now also tested against PHP 8.0
- improved handling of indexed/associative arrays
v1.4.9
Allow disabling of auto prepending the field labels
v1.4.8
Add support for SL language
v1.4.7
New rules requiredWith and requiredWithout for conditional requirements
v1.4.6
new rule listContains - Performs in_array check on given array values
v1.4.5
New rule arrayHasKeys
v1.4.4
v1.4.3
New languages: Lithuanian, Swedish, Korean
New option to stop validating when the first error is encountered
Support for nested arrays for 'equals' and 'different' rules
Enhanced tests
Bugfix
The validateRequired method required $fields to be an array, and this broke compatibility with objects that implement PHP's ArrayAccess interface.
Please note that while ArrayAccess-objects will probably work most of the time, Valitron is meant to be used with actual arrays.