Sfoglia il codice sorgente

Fixes DocBlock for Zend_Locale_Format::_setEncoding()

Frank Brückner 11 anni fa
parent
commit
14a9c33709
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      library/Zend/Locale/Format.php

+ 4 - 3
library/Zend/Locale/Format.php

@@ -1295,14 +1295,15 @@ class Zend_Locale_Format
      * Internal method to set the encoding via the ini setting
      * default_charset for PHP >= 5.6 or iconv_set_encoding otherwise.
      *
+     * @param string $encoding
      * @return void
      */
-    protected static function _setEncoding($enc)
+    protected static function _setEncoding($encoding)
     {
         if (PHP_VERSION_ID < 50600) {
-            iconv_set_encoding('internal_encoding', $enc);
+            iconv_set_encoding('internal_encoding', $encoding);
         } else {
-            ini_set('default_charset', $enc);
+            ini_set('default_charset', $encoding);
         }
     }
 }