diff --git a/typo3/sysext/core/Classes/Charset/CharsetConverter.php b/typo3/sysext/core/Classes/Charset/CharsetConverter.php index 9249144e7414fe81b52d8e731cb3f9b020570271..043006e823c08e9b5e472e2a506240f2e066b845 100644 --- a/typo3/sysext/core/Classes/Charset/CharsetConverter.php +++ b/typo3/sysext/core/Classes/Charset/CharsetConverter.php @@ -632,9 +632,8 @@ class CharsetConverter implements SingletonInterface * @param string $charset The charset to be initialized. Use lowercase charset always (the charset must match exactly with a filename in csconvtbl/ folder ([charset].tbl) * @return int Returns '1' if already loaded, '2' if the charset conversion table was found and parsed. * @throws UnknownCharsetException if no charset table was found - * @access private */ - public function initCharset($charset) + protected function initCharset($charset) { // Only process if the charset is not yet loaded: if (!is_array($this->parsedCharsets[$charset])) { @@ -698,9 +697,8 @@ class CharsetConverter implements SingletonInterface * * @param string $mode Mode ("case", "ascii", ...) * @return int Returns FALSE on error, a TRUE value on success: 1 table already loaded, 2, cached version, 3 table parsed (and cached). - * @access private */ - public function initUnicodeData($mode = null) + protected function initUnicodeData($mode = null) { // Cache files $cacheFileCase = Environment::getVarPath() . '/charset/cscase_utf-8.tbl'; @@ -935,9 +933,8 @@ class CharsetConverter implements SingletonInterface * * @param string $charset Charset for which to initialize case folding. * @return int Returns FALSE on error, a TRUE value on success: 1 table already loaded, 2, cached version, 3 table parsed (and cached). - * @access private */ - public function initCaseFolding($charset) + protected function initCaseFolding($charset) { // Only process if the case table is not yet loaded: if (is_array($this->caseFolding[$charset])) { @@ -997,9 +994,8 @@ class CharsetConverter implements SingletonInterface * * @param string $charset Charset for which to initialize conversion. * @return int Returns FALSE on error, a TRUE value on success: 1 table already loaded, 2, cached version, 3 table parsed (and cached). - * @access private */ - public function initToASCII($charset) + protected function initToASCII($charset) { // Only process if the case table is not yet loaded: if (is_array($this->toASCII[$charset])) { diff --git a/typo3/sysext/core/Documentation/Changelog/master/Important-85116-ChangedVisibilityOfCharsetConverterInitializationMethods.rst b/typo3/sysext/core/Documentation/Changelog/master/Important-85116-ChangedVisibilityOfCharsetConverterInitializationMethods.rst new file mode 100644 index 0000000000000000000000000000000000000000..238fc9e1d4c4269cfe9144301053ca34adc9b538 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Important-85116-ChangedVisibilityOfCharsetConverterInitializationMethods.rst @@ -0,0 +1,24 @@ +.. include:: ../../Includes.txt + +================================================================================= +Important: #85116 - Changed visibility of CharsetConverter initialization methods +================================================================================= + +See :issue:`85116` + +Description +=========== + +Initialization methods within TYPO3's :php:`CharsetConverter` class have changed visibility. + +The methods's purpose is to initialize conversion done with public API methods, and have previously +been marked as private already. + +The following methods visibility have been changed from :php:`public` to :php:`protected`: + +- :php:`CharsetConverter::initCharset()` +- :php:`CharsetConverter::initUnicodeData()` +- :php:`CharsetConverter::initCaseFolding()` +- :php:`CharsetConverter::initToASCII()` + +.. index:: PHP-API \ No newline at end of file