All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
-
#22 adds tests to verify two conditions around inputs with fallback values:
- If the input was not in the data set, it should not be represented in either the list of valid or invalid inputs.
- If the input was in the data set, but empty, it should be represented in the list of valid inputs.
-
#31 updates the
InputFilterInterface::add()
docblock to match existing, shipped implementations. -
#25 updates the input filter to prevent validation of missing optional fields (a BC break since 2.3.9). This change likely requires changes to your inputs as follows:
$input = new Input(); $input->setAllowEmpty(true); // Disable BC Break logic related to treat `null` values as valid empty value instead *not set*. $input->setContinueIfEmpty(true); // Disable BC Break logic related to treat `null` values as valid empty value instead *not set*. $input->getValidatorChain()->attach( new Zend\Validator\NotEmpty(), true // break chain on failure );
$inputSpecification = [ 'allow_empty' => true, 'continue_if_empty' => true, 'validators' => [ [ 'break_chain_on_failure' => true, 'name' => 'Zend\\Validator\\NotEmpty', ], ], ];
-
Numerous fixes aimed at bringing the functionality back to the pre-2.4 code, and improving quality overall of the component via increased testing and test coverage.
- Nothing.
- Nothing.
- Nothing.
- #15 ensures that
ArrayAccess
data provided to an input filter usingsetData()
can be validated, a scenario that broke with #7.
- Nothing.
- Nothing.
- Nothing.
- #10 fixes an
issue with with the combination of
required
,allow_empty
, and presence of a fallback value on an input introduced in 2.4.5. Prior to the fix, the fallback value was no longer considered when the value was required but no value was provided; it now is.
- #2 adds support
in
Zend\InputFilter\Factory
for using the composedInputFilterManager
to retrieve an input of a giventype
based on configuration; only if the type is not available in the factory will it attempt to directly instantiate it.
- Nothing.
- Nothing.
- #7 fixes an issue
with the combination of
required
andallow_empty
, now properly invalidating a data set if therequired
input is missing entirely (previously, it would consider the data set valid, and auto-initialize the missing input tonull
).
- Nothing.
-
#26 Deprecate magic logic for auto attach a NonEmpty validator with breakChainOnFailure = true. Instead append NonEmpty validator when desired.
$input = new Zend\InputFilter\Input(); $input->setContinueIfEmpty(true); $input->setAllowEmpty(true); $input->getValidatorChain()->attach(new Zend\Validator\NotEmpty(), /* break chain on failure */ true);
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #15 ensures that
ArrayAccess
data provided to an input filter usingsetData()
can be validated, a scenario that broke with #7.
- Nothing.
- Nothing.
- Nothing.
- #10 fixes an
issue with with the combination of
required
,allow_empty
, and presence of a fallback value on an input introduced in 2.4.5. Prior to the fix, the fallback value was no longer considered when the value was required but no value was provided; it now is.
- Nothing.
- Nothing.
- Nothing.
- #7 fixes an issue
with the combination of
required
andallow_empty
, now properly invalidating a data set if therequired
input is missing entirely (previously, it would consider the data set valid, and auto-initialize the missing input tonull
).