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