Bugfix: error when CacheClient is NULL

This commit is contained in:
djmaze 2021-11-05 17:25:09 +01:00
parent 9f444ceb53
commit 6273869b32

View file

@ -718,7 +718,7 @@ class MailClient
* @throws \MailSo\Net\Exceptions\Exception
* @throws \MailSo\Imap\Exceptions\Exception
*/
public function MessageListThreadsMap(string $sFolderName, string $sFolderHash, \MailSo\Cache\CacheClient $oCacher) : array
public function MessageListThreadsMap(string $sFolderName, string $sFolderHash, ?\MailSo\Cache\CacheClient $oCacher) : array
{
$iThreadLimit = \MailSo\Config::$LargeThreadLimit;