ZF-2342: setPathDelimiter() should accept arrays of string as per the phpdoc description
Description
The setPathDelimiter() in ZendFramework-1.0.3\library\Zend\Controller\Dispatcher\Abstract.php should accept an array but currently this is not allowed. Need to allow arrays to be passed in as per the comments.
/**
* Set path delimiter
*
* Set the path delimiter to use in controllers. May be a single string or
* an array of strings.
*
* @param string|array $spec
* @return Zend_Controller_Dispatcher_Abstract
*/
public function setPathDelimiter($spec)
{
if (!is_string($spec)) {
require_once 'Zend/Controller/Dispatcher/Exception.php';
throw new Zend_Controller_Dispatcher_Exception('Invalid path delimiter');
}
$this->_pathDelimiter = $spec;
return $this;
}
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-14T11:57:02.000+0000
For now, we'll simply modify the phpdoc to reflect actual functionality.
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-18T15:18:07.000+0000
docblock updated in trunk and release-1.0 branch.