From: Tim Düsterhus Date: Thu, 23 Sep 2021 07:24:18 +0000 (+0200) Subject: Replace use of `StringUtil::split()` by `\mb_str_split()` X-Git-Tag: 5.5.0_Alpha_1~410 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebb63c5a4627180bddb5cf65f035d0988d255944;p=GitHub%2FWoltLab%2FWCF.git Replace use of `StringUtil::split()` by `\mb_str_split()` --- diff --git a/wcfsetup/install/files/lib/util/CLIUtil.class.php b/wcfsetup/install/files/lib/util/CLIUtil.class.php index a7647fcdb8..e2d8631ec4 100644 --- a/wcfsetup/install/files/lib/util/CLIUtil.class.php +++ b/wcfsetup/install/files/lib/util/CLIUtil.class.php @@ -76,7 +76,7 @@ final class CLIUtil { $result = ''; foreach ($list as $row) { - $parts = StringUtil::split($row, CLIWCF::getTerminal()->getWidth() - 2); + $parts = \mb_str_split($row, CLIWCF::getTerminal()->getWidth() - 2); $result .= '* ' . \implode(\PHP_EOL . ' ', $parts) . \PHP_EOL; }