@@ -44,7 +44,7 @@ public function count(): int
4444 /**
4545 * Get the first message in the resulting collection.
4646 *
47- * @return Message |null
47+ * @return MessageInterface |null
4848 */
4949 public function first (): ?MessageInterface
5050 {
@@ -58,7 +58,7 @@ public function first(): ?MessageInterface
5858 /**
5959 * Get the first message in the resulting collection or throw an exception.
6060 *
61- * @return Message
61+ * @return MessageInterface
6262 */
6363 public function firstOrFail (): MessageInterface
6464 {
@@ -82,7 +82,7 @@ public function append(string $message, mixed $flags = null): int
8282 $ this ->folder ->path (), $ message , Str::enums ($ flags ),
8383 );
8484
85- return $ response // TAG4 OK [APPENDUID <uidvalidity> <uid>] APPEND completed.
85+ return ( int ) $ response // TAG4 OK [APPENDUID <uidvalidity> <uid>] APPEND completed.
8686 ->tokenAt (2 ) // [APPENDUID <uidvalidity> <uid>]
8787 ->tokenAt (2 ) // <uid>
8888 ->value ;
@@ -169,7 +169,7 @@ public function paginate(int $perPage = 5, $page = null, string $pageName = 'pag
169169 /**
170170 * Find a message by the given identifier type or throw an exception.
171171 *
172- * @return Message
172+ * @return MessageInterface
173173 */
174174 public function findOrFail (int $ id , ImapFetchIdentifier $ identifier = ImapFetchIdentifier::Uid): MessageInterface
175175 {
@@ -186,7 +186,7 @@ public function findOrFail(int $id, ImapFetchIdentifier $identifier = ImapFetchI
186186 /**
187187 * Find a message by the given identifier type.
188188 *
189- * @return Message |null
189+ * @return MessageInterface |null
190190 */
191191 public function find (int $ id , ImapFetchIdentifier $ identifier = ImapFetchIdentifier::Uid): ?MessageInterface
192192 {
0 commit comments