ZF-2786: Zend_Form_Element::addValidator() should case $options to array
Description
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().
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-03-06T14:01:30.000+0000
Resolved in trunk and release branch