This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
release-2.7.3: zend-inputfilter 2.7.3
weierophinney
released this
18 Aug 18:43
·
324 commits
to master
since this release
Added
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #115 fixes retrieval of unknown fields when using a
CollectionInputFilter
. Previously, it returned all fields in the collection, not just the unknown fields, which was a different behavior from all other input filters. Now it will return only the unknown fields for each collection. - #108 fixes the
InputFilterPluginManager::populateFactory()
method to restore behavior from prior to the 2.7 series; specifically, previously it would inject itself as the plugin manager to input filter factories when under zend-servicemanager v2; it now will do so again. - #116 fixes the behavior of
CollectionInputFilter::setData()
. Prior to this release, it would validate whether the data represented a collection (i.e., it was an array or traversable) and whether individual items in the collection were data sets (i.e., arrays or traversables) only duringisValid()
and/orgetUnknown()
calls, raising exceptions during runtime. These should have been considered invalid arguments when the data was provided; they now are. As such,setData()
now raisesZend\InputFilter\Exception\InvalidArgumentException
for invalid data, ensuring thatisValid()
andgetUnknown()
only ever operate on usable collections and collection sets. - #118 fixes aggregation of error messages when validating collections to ensure only the error messages specific to a given datum are presented.