Replace use of `StringUtil::split()` by `\mb_str_split()`
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 23 Sep 2021 07:24:18 +0000 (09:24 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 23 Sep 2021 07:24:18 +0000 (09:24 +0200)
wcfsetup/install/files/lib/util/CLIUtil.class.php

index a7647fcdb83ba719c253e25fb7f7a24be15e1633..e2d8631ec4a6d4c9fa1cc95a1d2ba4dc4aca9d8e 100644 (file)
@@ -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;
         }