zendframework / zend-validator

Validator component from Zend Framework
BSD 3-Clause "New" or "Revised" License
181 stars 136 forks source link

Ensure Between validator has both min and max values during construction #187

Closed weierophinney closed 7 years ago

weierophinney commented 7 years ago

As noted in #125, and proved in #183, the Between validator had some erroneous logic for determining that both min and max values are provided during instantiation. This patch builds on the tests from #183, adding more tests, and providing a patch.

The fix is scheduled for 2.10.0, as it's a slight change in behavior, albeit to fix existing bad behavior.