From ccafc2781f57c363f0a61ef6a1121e749740e1b2 Mon Sep 17 00:00:00 2001 From: Torben Naumann Date: Mon, 31 Oct 2022 14:39:18 +0100 Subject: [PATCH] Return client call result in Message::setFlagFull --- src/Message.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Message.php b/src/Message.php index 1391dd0..72f1cee 100644 --- a/src/Message.php +++ b/src/Message.php @@ -433,7 +433,7 @@ public static function expunge($imap) * @param $flag * @param $options * - * @return bool|void + * @return bool */ public static function setFlagFull($imap, $sequence, $flag, $options = 0) { @@ -454,9 +454,7 @@ public static function setFlagFull($imap, $sequence, $flag, $options = 0) $sequence = implode(',', $uid); } - $client->flag($imap->getMailboxName(), $sequence, strtoupper(substr($flag, 1))); - - return false; + return $client->flag($imap->getMailboxName(), $sequence, strtoupper(substr($flag, 1))); } /**