This commit is contained in:
the-djmaze 2023-06-22 12:49:26 +02:00
parent 11a79da01a
commit 0ab66e175a
2 changed files with 3 additions and 3 deletions

View file

@ -112,7 +112,7 @@ trait Metadata
{ {
if ($this->hasCapability('METADATA')) { if ($this->hasCapability('METADATA')) {
if (!$aEntries) { 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)]; $arguments = [$this->EscapeFolderName($sFolderName)];

View file

@ -71,8 +71,8 @@ abstract class NetClient
} }
/** /**
* @throws \InvalidArgumentException
* @throws \MailSo\RuntimeException * @throws \MailSo\RuntimeException
* @throws \MailSo\Base\Exceptions\InvalidArgumentException
* @throws \MailSo\Net\Exceptions\SocketAlreadyConnectedException * @throws \MailSo\Net\Exceptions\SocketAlreadyConnectedException
* @throws \MailSo\Net\Exceptions\SocketCanNotConnectToHostException * @throws \MailSo\Net\Exceptions\SocketCanNotConnectToHostException
*/ */
@ -80,7 +80,7 @@ abstract class NetClient
{ {
$oSettings->host = \trim($oSettings->host); $oSettings->host = \trim($oSettings->host);
if (!\strlen($oSettings->host) || 0 > $oSettings->port || 65535 < $oSettings->port) { 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()) { if ($this->IsConnected()) {