Fetch
Fetch copied to clipboard
Server::listMailBoxes incorrect result
Server::listMailBoxes is simple wrapper arround imap_list:
return imap_list($this->getImapStream(), $this->getServerSpecification(), $pattern);
but if error occured the imap_list does not return array - see documentation example.
You should check the result type and throw exception if the result is not array or change method signature.