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))); } /**