From acba7d25a02827e46298bbb380b96b8ef4e19ca4 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 6 Mar 2022 14:15:59 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hypolite Petovan --- 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 f3a3736ad3..4221dfb6db 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): array + public static function poll(Connection $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): array + public static function getMessage(Connection $mbox, $uid, $reply, $item): array { $ret = $item; -- 2.39.5