Deprecation: #78670 - Deprecated CharsetConverter methods¶
See forge#78670
Description¶
The symfony/polyfill-mbstring
package provides us with mb_string
functionality in all installations.
Therefore some methods of CharsetConverter
have been marked as deprecated, since the equivalent mb_string
functions can be used directly:
strlen()
: usemb_strlen()
directlysubstr()
: usemb_substr()
directlystrtrunc()
: usemb_strcut()
directlyconvCapitalize()
: usemb_convert_case()
directlyconv_case()
: usemb_strtolower()
ormb_strtoupper()
directlyutf8_substr()
: usemb_substr()
directlyutf8_strlen()
: usemb_strlen()
directlyutf8_strtrunc()
: usemb_strcut()
directlyutf8_strpos()
: usemb_strpos()
directlyutf8_strrpos()
: usemb_strrpos()
directlyutf8_byte2char_pos()
: no replacementeuc_strtrunc()
: usemb_strcut()
directlyeuc_substr()
: usemb_substr()
directlyeuc_strlen()
: usemb_strlen()
directlyeuc_char2byte_pos()
: no replacement$fourByteSets
: no replacement
Impact¶
Calling the deprecated CharsetConverter
methods will trigger a deprecation log entry.
Affected Installations¶
Any installation using third party extensions leveraging the mentioned CharsetConverter
functionality.
Migration¶
Use the equivalent mb_string methods directly as denoted above.