PHP Fatal error: Uncaught TypeError: Argument 1 passed to PhpImap\Exceptions\ConnectionException::__construct() must be of the type array, bool given, called in .../phpimap/Imap.php on line 712 and defined in .../phpimap/Exceptions/ConnectionException.php:16
Stack trace:
#0 .../phpimap/Imap.php(712): PhpImap\Exceptions\ConnectionException->__construct()
#1 .../phpimap/Mailbox.php(1715): PhpImap\Imap::open()
#2 .../phpimap/Mailbox.php(1676): PhpImap\Mailbox->initImapStream()
#3 .../phpimap/Mailbox.php(469): PhpImap\Mailbox->initImapStreamWithRetry()
...
\imap_errors() can also retrieve boolean false, which is probably what is happening.
https://github.com/barbushin/php-imap/blob/13bdfa9a6f541798253e24e2d8f44332c8be098c/src/PhpImap/Imap.php#L712
\imap_errors()
can also retrieve booleanfalse
, which is probably what is happening.