소스 검색

Fixes DocBlock for Zend_Locale_Format::_setEncoding()

Frank Brückner 11 년 전
부모
커밋
14a9c33709
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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);
         }
     }
 }