From: Tim Düsterhus Date: Fri, 13 May 2022 08:50:44 +0000 (+0200) Subject: Deprecate StringUtil::convertEncoding() X-Git-Tag: 6.0.0_Alpha_1~1299^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef470207c06d344c56f44b49bf80a7bb7f906f14;p=GitHub%2FWoltLab%2FWCF.git Deprecate StringUtil::convertEncoding() This method is a simple wrapper around `mb_convert_encoding()`, so that one can simply be called directly. --- 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) {