ZF-9954: formErrors : this decorator is badly written
Description
let's me show you this method :
/**
* Get showCustomFormErrors
*
* @return bool
*/
public function getShowCustomFormErrors()
{
if (null === $this->_showCustomFormErrors) {
if (null === ($how = $this->getOption('showCustomFormErrors'))) {
$this->setShowCustomFormErrors($this->_defaults['showCustomFormErrors']);
} else {
$this->setShowCustomFormErrors($show);
$this->removeOption('showCustomFormErrors');
}
}
}
1/ this method is apparently a getter and there is no return instruction. 2/ We have two variables : $how and $show.
Same errors with getOnlyCustomFormErrors().
Comments
Posted by Christian Albrecht (alab) on 2010-06-07T03:46:26.000+0000
This was fixed in http://framework.zend.com/code/changelog/…
Posted by jah (jahra) on 2010-07-13T08:31:50.000+0000
Please apply the attached patch which fixes the typo mentioned in the original comment ({{$how}} instead of {{$Show}}).