mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
Resolve #1182
This commit is contained in:
parent
11a79da01a
commit
0ab66e175a
2 changed files with 3 additions and 3 deletions
|
|
@ -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)];
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue