Skip to content

Commit 8e458b5

Browse files
committed
Fix new phpstan errors
1 parent 1488e57 commit 8e458b5

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

program/lib/Roundcube/rcube.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ public static function raise_error($arg, $log = false, $terminate = false)
14081408
'file' => $arg->getFile(),
14091409
'message' => $arg->getMessage(),
14101410
];
1411-
} elseif (is_object($arg) && is_a($arg, 'PEAR_Error')) {
1411+
} elseif ($arg instanceof PEAR_Error) {
14121412
$info = $arg->getUserInfo();
14131413
$arg = [
14141414
'code' => $arg->getCode(),

program/lib/Roundcube/rcube_smtp.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,6 @@ public function send_mail($from, $recipients, $headers, $body, $opts = [])
247247

248248
// prepare list of recipients
249249
$recipients = $this->_parse_rfc822($recipients);
250-
if (is_a($recipients, 'PEAR_Error')) {
251-
$this->error = ['label' => 'smtprecipientserror'];
252-
$this->reset();
253-
return false;
254-
}
255250

256251
$exts = $this->conn->getServiceExtensions();
257252
$from_params = null;

0 commit comments

Comments
 (0)