ZF-12174: Wrong type Zend_Currency for $currency parameter in Currency viewhelper


The second parameter $currency of the Zend_View_Helper_Currency method currency() has listet Zend_Currency as type in the docs but it isn't used by the method. Instead it checks with is_array if $currency is an array.

Replace Zend_Currency with array in the PHPDocs

### Eclipse Workspace Patch 1.0
#P Zend_library
Index: Zend/View/Helper/Currency.php
--- Zend/View/Helper/Currency.php   (Revision 24717)
+++ Zend/View/Helper/Currency.php   (Arbeitskopie)
@@ -62,7 +62,7 @@
      * Output a formatted currency
      * @param  integer|float                    $value    Currency value to output
-     * @param  string|Zend_Locale|Zend_Currency $currency OPTIONAL Currency to use for this call
+     * @param  string|Zend_Locale|array $currency OPTIONAL Currency to use for this call
      * @return string Formatted currency
     public function currency($value = null, $currency = null)


Patch added.

Hi Claudio, thanks for reporting.

Fixed in trunk (1.12.0): r24768 Fixed in release-1.11 (1.11.12): r24769