From 31dbdd36771aea90e4330132db335a7238a45790 Mon Sep 17 00:00:00 2001
From: Michael <heluecht@pirati.ca>
Date: Sun, 6 Mar 2022 12:21:27 +0000
Subject: [PATCH] variable type for the return value is added

---
 src/Protocol/Email.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Protocol/Email.php b/src/Protocol/Email.php
index 22d8aca23..f3a3736ad 100644
--- a/src/Protocol/Email.php
+++ b/src/Protocol/Email.php
@@ -68,7 +68,7 @@ class Email
 	 * @return array
 	 * @throws \Exception
 	 */
-	public static function poll($mbox, $email_addr)
+	public static function poll($mbox, $email_addr): array
 	{
 		if (!$mbox || !$email_addr) {
 			return [];
@@ -130,7 +130,7 @@ class Email
 	 * @return array
 	 * @throws \Friendica\Network\HTTPException\InternalServerErrorException
 	 */
-	public static function getMessage($mbox, $uid, $reply, $item)
+	public static function getMessage($mbox, $uid, $reply, $item): array
 	{
 		$ret = $item;