From 0ab66e175a8bebede86197a67d90732799797d19 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Thu, 22 Jun 2023 12:49:26 +0200 Subject: [PATCH] Resolve #1182 --- .../v/0.0.0/app/libraries/MailSo/Imap/Commands/Metadata.php | 2 +- snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Metadata.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Metadata.php index b2fd84216..a01a4fb12 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Metadata.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Metadata.php @@ -112,7 +112,7 @@ trait Metadata { if ($this->hasCapability('METADATA')) { if (!$aEntries) { - throw new \MailSo\Base\Exceptions\InvalidArgumentException("Wrong argument for SETMETADATA command"); + throw new \InvalidArgumentException('Wrong argument for SETMETADATA command'); } $arguments = [$this->EscapeFolderName($sFolderName)]; diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php index c6416b55f..70a112b46 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php @@ -71,8 +71,8 @@ abstract class NetClient } /** + * @throws \InvalidArgumentException * @throws \MailSo\RuntimeException - * @throws \MailSo\Base\Exceptions\InvalidArgumentException * @throws \MailSo\Net\Exceptions\SocketAlreadyConnectedException * @throws \MailSo\Net\Exceptions\SocketCanNotConnectToHostException */ @@ -80,7 +80,7 @@ abstract class NetClient { $oSettings->host = \trim($oSettings->host); if (!\strlen($oSettings->host) || 0 > $oSettings->port || 65535 < $oSettings->port) { - $this->writeLogException(new \MailSo\Base\Exceptions\InvalidArgumentException, \LOG_ERR); + $this->writeLogException(new \InvalidArgumentException, \LOG_ERR); } if ($this->IsConnected()) {