Issues

ZF-2206: Wrong phpDoc of Zend_Controller_Front::getRouter() method

Description

    /**
     * Return the router object.
     *
     * Instantiates a Zend_Controller_Router_Rewrite object if no router currently set.
     *
     * @return null|Zend_Controller_Router_Interface
     */
    public function getRouter()
    {
        if (null == $this->_router) {
            require_once 'Zend/Controller/Router/Rewrite.php';
            $this->setRouter(new Zend_Controller_Router_Rewrite());
        }

        return $this->_router;
    }

This method always return some Router object, so phpDoc @return should be corrected

Comments

Scheduling for 1.0.3

Corrected in revision 7387. Thanks.