From ef470207c06d344c56f44b49bf80a7bb7f906f14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 13 May 2022 10:50:44 +0200 Subject: [PATCH] Deprecate StringUtil::convertEncoding() This method is a simple wrapper around `mb_convert_encoding()`, so that one can simply be called directly. --- wcfsetup/install/files/lib/util/StringUtil.class.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index a65fdff174..d3fb521faf 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -525,13 +525,7 @@ final class StringUtil } /** - * Converts a string to requested character encoding. - * @param string $inCharset - * @param string $outCharset - * @param string $string - * @return string converted string - * @see mb_convert_encoding() - * + * @deprecated 5.6 Use `\mb_convert_encoding()` directly. */ public static function convertEncoding($inCharset, $outCharset, $string) { -- 2.20.1