From 71100a46343a4e31108d6c7090ecd4d6be4309b2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Apr 2020 21:39:01 +0200 Subject: [PATCH] remove old exception --- Message/Mail/Mail.php | 6 +++--- Utils/Permutation.php | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Message/Mail/Mail.php b/Message/Mail/Mail.php index 8d9de1595..eac0a82f3 100644 --- a/Message/Mail/Mail.php +++ b/Message/Mail/Mail.php @@ -16,7 +16,7 @@ namespace phpOMS\Message\Mail; use phpOMS\System\CharsetType; use phpOMS\System\MimeType; -use phpOMS\Utils\StringUtils; +use phpOMS\Utils\MbStringUtils; /** * Mail class. @@ -873,7 +873,7 @@ class Mail if ($spaces > 20) { $len = $spaces; if ($isUTF8) { - $len = StringUtils::utf8CharBoundary($word, $len); + $len = MbStringUtils::utf8CharBoundary($word, $len); } elseif ('=' === \substr($word, $len - 1, 1)) { --$len; } elseif ('=' === \substr($word, $len - 2, 1)) { @@ -899,7 +899,7 @@ class Mail $len = $length; if ($isUTF8) { - $len = StringUtils::utf8CharBoundary($word, $len); + $len = MbStringUtils::utf8CharBoundary($word, $len); } elseif ('=' === \substr($word, $len - 1, 1)) { --$len; } elseif ('=' === \substr($word, $len - 2, 1)) { diff --git a/Utils/Permutation.php b/Utils/Permutation.php index 4fc3abbfe..7f3686876 100644 --- a/Utils/Permutation.php +++ b/Utils/Permutation.php @@ -105,8 +105,7 @@ final class Permutation * * @return mixed * - * @throws \InvalidArgumentException This exception is thrown if the $toPermute argument is neither array or string - * @throws \OutOfBoundsException This exception is thrown if the permutation key is larger than the data to permute + * @throws \OutOfBoundsException This exception is thrown if the permutation key is larger than the data to permute * * @since 1.0.0 */