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

Method getValue should check the type of input inside InputFilter #6028

Closed
wants to merge 2 commits into from

Conversation

spalax
Copy link
Contributor

@spalax spalax commented Mar 23, 2014

InputFilter::getValue works incorrect and finishes with error (Missing argument 1 for Zend\InputFilter\BaseInputFilter::getValue()) when InputFilter has nested InputFilters.

…alue, if it is InputFilter then should return getValues
@@ -46,6 +46,25 @@ public function testCanAddUsingSpecification()
$this->assertInstanceOf('Zend\InputFilter\InputInterface', $foo);
}

public function testInputFilterDoesNotHandleNestedInputFilters()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test name should reflect what the success case is.

@spalax
Copy link
Contributor Author

spalax commented Mar 24, 2014

@Ocramius done

@Ocramius Ocramius self-assigned this Apr 2, 2014
@Ocramius Ocramius added the bug label Apr 2, 2014
@Ocramius Ocramius added this to the 2.3.1 milestone Apr 2, 2014
@Ocramius Ocramius closed this in 9d25bfe Apr 2, 2014
Ocramius added a commit that referenced this pull request Apr 2, 2014
gianarb pushed a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-inputfilter 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.

None yet

2 participants