ZF-2786: Zend_Form_Element::addValidator() should case $options to array

Issue Type: Improvement Created: 2008-03-03T13:49:22.000+0000 Last Updated: 2008-03-21T16:25:14.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Matthew Weier O'Phinney (matthew) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:


Currently, on line 915 of Zend_Form_Element, a call to ReflectionClass::newInstanceArgs() can fail with a catchable fatal error if the options passed to addValidator() are not in an array.

This can be rectified in one of two ways: * typehint $options as an array * case $options to an array at the time that the call is made

This is true also of addFilter().


Posted by Matthew Weier O'Phinney (matthew) on 2008-03-06T14:01:30.000+0000

Resolved in trunk and release branch

Have you found an issue?

See the Overview section for more details.


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

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