Skip to content

Commit

Permalink
Merge pull request #145 from tedious/supress_php_warning
Browse files Browse the repository at this point in the history
Suppressed imap_open warning
  • Loading branch information
tedivm committed Aug 2, 2015
2 parents 3448bff + f86c17e commit ea3f1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fetch/Server.php
Original file line number Diff line number Diff line change
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 ea3f1bb

Please sign in to comment.