Skip to content

Commit

Permalink
Suppressed imap_open warning (still throwing exception after testing …
Browse files Browse the repository at this point in the history
…return results)
  • Loading branch information
tedivm committed Aug 2, 2015
1 parent 3448bff commit f86c17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fetch/Server.php
Expand Up @@ -310,7 +310,7 @@ protected function setImapStream()
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());
Expand Down

0 comments on commit f86c17e

Please sign in to comment.