ZF-9414: Zend_Filter_Input should probably implement Zend_Validate_Interface

Issue Type: Improvement Created: 2010-03-11T23:44:49.000+0000 Last Updated: 2010-03-12T05:07:20.000+0000 Status: Resolved Fix version(s): Reporter: Alexander Steshenko (lcf) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Filter_Input

Related issues: Attachments:


As far as it's used (probably even more often than for filtering) for validation it should implement Zend_Validate_Interface. It does implement it already, you only need to add 'implements Zend_Validate_Interface'.


Posted by Matthew Weier O'Phinney (matthew) on 2010-03-12T05:07:09.000+0000

Actually, it doesn't fully implement Zend_Validate_Interface. Zend_Validate_Interface::isValid() expects a value; Zend_Filter_Input::isValid() makes that value optional, which breaks the contract.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.