From f86c17e6294d78350c4fc29f3043ddd38c50cf0b Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Sat, 1 Aug 2015 20:32:46 -0700 Subject: [PATCH] Suppressed imap_open warning (still throwing exception after testing return results) --- src/Fetch/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fetch/Server.php b/src/Fetch/Server.php index 262d7fc..32e57c1 100644 --- a/src/Fetch/Server.php +++ b/src/Fetch/Server.php @@ -310,7 +310,7 @@ class Server if (!imap_reopen($this->imapStream, $this->getServerString(), $this->options, 1)) throw new \RuntimeException(imap_last_error()); } else { - $imapStream = imap_open($this->getServerString(), $this->username, $this->password, $this->options, 1, $this->params); + $imapStream = @imap_open($this->getServerString(), $this->username, $this->password, $this->options, 1, $this->params); if ($imapStream === false) throw new \RuntimeException(imap_last_error());