ZF-9324: Zend_View_Helper_HeadTitle wrong params in code ws comments and API documentation



The Api documentation:

Zend_View_Helper_HeadTitle headTitle ([string $title = null], [string $setType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND], string $separator)

The comments above the function: /** * Retrieve placeholder for title element and optionally set state * * @param string $title * @param string $setType * @param string $separator * @return Zend_View_Helper_HeadTitle */

The function:

public function headTitle($title = null, $setType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND)

So, as you can see the function params doesn't match with documentation and comments params.

As far as i checked there are no ways to actually set the separator...


For the later part, about setting the separator i was wrong, this can be done by setSeparator...

I've uploaded a patch which removes "@param string $separator" from the docblock.

This should bring the API documentation for the headTitle() method inline with the method's current signature.

Fixed in trunk r23386 merged to release branch r23388.