remove old exception

This commit is contained in:
Dennis Eichhorn 2020-04-11 21:39:01 +02:00
parent afe83cb82c
commit 71100a4634
2 changed files with 4 additions and 5 deletions

View File

@ -16,7 +16,7 @@ namespace phpOMS\Message\Mail;
use phpOMS\System\CharsetType; use phpOMS\System\CharsetType;
use phpOMS\System\MimeType; use phpOMS\System\MimeType;
use phpOMS\Utils\StringUtils; use phpOMS\Utils\MbStringUtils;
/** /**
* Mail class. * Mail class.
@ -873,7 +873,7 @@ class Mail
if ($spaces > 20) { if ($spaces > 20) {
$len = $spaces; $len = $spaces;
if ($isUTF8) { if ($isUTF8) {
$len = StringUtils::utf8CharBoundary($word, $len); $len = MbStringUtils::utf8CharBoundary($word, $len);
} elseif ('=' === \substr($word, $len - 1, 1)) { } elseif ('=' === \substr($word, $len - 1, 1)) {
--$len; --$len;
} elseif ('=' === \substr($word, $len - 2, 1)) { } elseif ('=' === \substr($word, $len - 2, 1)) {
@ -899,7 +899,7 @@ class Mail
$len = $length; $len = $length;
if ($isUTF8) { if ($isUTF8) {
$len = StringUtils::utf8CharBoundary($word, $len); $len = MbStringUtils::utf8CharBoundary($word, $len);
} elseif ('=' === \substr($word, $len - 1, 1)) { } elseif ('=' === \substr($word, $len - 1, 1)) {
--$len; --$len;
} elseif ('=' === \substr($word, $len - 2, 1)) { } elseif ('=' === \substr($word, $len - 2, 1)) {

View File

@ -105,8 +105,7 @@ final class Permutation
* *
* @return mixed * @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 * @since 1.0.0
*/ */