ZF-9954: formErrors : this decorator is badly written

Issue Type: Bug Created: 2010-06-07T03:05:33.000+0000 Last Updated: 2011-03-09T08:29:09.000+0000 Status: Resolved Fix version(s): Reporter: coba (coba) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: - ZF-11151

Attachments: - FormErrors.php.patch


let's me show you this method :

<pre class="highlight">
     * Get showCustomFormErrors
     * @return bool
    public function getShowCustomFormErrors()
        if (null === $this->_showCustomFormErrors) {
            if (null === ($how =  $this->getOption('showCustomFormErrors'))) {
            } else {

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().


Posted by Christian Albrecht (alab) on 2010-06-07T03:46:26.000+0000

This was fixed in…

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).

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.