Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Remove Identical validator type hint #6592

Closed
wants to merge 4 commits into from
Closed

Remove Identical validator type hint #6592

wants to merge 4 commits into from

Conversation

gkralik
Copy link
Contributor

@gkralik gkralik commented Aug 25, 2014

7bcd59a introduced an array type hint for the $context parameter in Zend\Validator\Identical::isValid(). This causes PHP errors if the InputFilter containing the Identical validator is executed on form values (they are passed not as arrays, but Zend\Stdlib\Parameters).

Remove the type hint and add a check if $context is array or ArrayObject.

weierophinney and others added 4 commits August 20, 2014 08:18
The type hint was introduced in 7bcd59a and causes PHP errors when
passing in ArrayObject context parameters. Remove the type hint and
make sure the passed context is either an array or an ArrayObject
instance.
@mwillbanks mwillbanks added this to the 2.4.0 milestone Aug 27, 2014
@mwillbanks
Copy link
Contributor

NOTE: The BC Break here is to fix a prior BC break that caused this issue to happen.

@Ocramius
Copy link
Member

@gkralik thanks, I merged this manually into develop at 59a8eea

@Ocramius Ocramius closed this Nov 22, 2014
Ocramius added a commit that referenced this pull request Nov 22, 2014
Ocramius added a commit that referenced this pull request Nov 22, 2014
Ocramius added a commit that referenced this pull request Nov 22, 2014
Ocramius added a commit that referenced this pull request Nov 22, 2014
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…`ArrayObject` instances for `$context`
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…ipped: data provider executes invalid cases one by one instead
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants