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

Issue Type: Coding Standards Violation Created: 2007-11-15T17:52:07.000+0000 Last Updated: 2008-02-26T12:56:07.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Alan Gabriel Bem (alan.bem) Assignee: Michal Minicki (martel) Tags: - Zend_Controller

Related issues: Attachments:


<pre class="highlight">    /**
     * 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


Posted by Matthew Weier O'Phinney (matthew) on 2007-11-16T12:34:39.000+0000

Scheduling for 1.0.3

Posted by Michal Minicki (martel) on 2008-01-11T07:33:27.000+0000

Corrected in revision 7387. Thanks.

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.