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
File
validators 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
Between
validator to require that both amin
and amax
value 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
ConfigProvider
to alias the service nameValidatorManager
to 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
EmailAddress
validator handles the local part of an address, allowing it to support unicode.