zend-validator 2.10.0
Added
-
#175 adds support for PHP 7.2 (conditionally, as PHP 7.2 is currently in beta1).
-
#157 adds a new validator,
IsCountable, which allows validating:- if a value is countable
- if a countable value exactly matches a configured count
- if a countable value is greater than a configured minimum count
- if a countable value is less than a configured maximum count
- if a countable value is between configured minimum and maximum counts
Changed
-
#169 modifies how the various
Filevalidators check for readable files. Previously, they usedstream_resolve_include_path, which led to false negative checks when the files did not exist within aninclude_path(which is often the case within a web application). These now useis_readable()instead. -
#185 updates the zend-session requirement (during development, and in the suggestions) to 2.8+, to ensure compatibility with the upcoming PHP 7.2 release.
-
#187 updates the
Betweenvalidator to require that both aminand amaxvalue are provided to the constructor, and that both are of the same type (both integer/float values and/or both string values). This fixes issues that could previously occur when one or the other was not set, but means an exception will now be raised during instantiation (versus runtime duringisValid()). -
#188 updates the
ConfigProviderto alias the service nameValidatorManagerto the classZend\Validator\ValidatorPluginManager, and now maps the the latter class to theValidatorPluginManagerFactory. Previously, we mapped the service name directly to the factory. Usage should not change for anybody at this point.
Deprecated
- Nothing.
Removed
- #175 removes support for HHVM.
Fixed
- #160 fixes how the
EmailAddressvalidator handles the local part of an address, allowing it to support unicode.