]> git.mxchange.org Git - friendica.git/commitdiff
variable type for the return value is added
authorMichael <heluecht@pirati.ca>
Sun, 6 Mar 2022 12:21:27 +0000 (12:21 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 6 Mar 2022 12:21:27 +0000 (12:21 +0000)
src/Protocol/Email.php

index 22d8aca2357eed95024776291c8c310a87dc3e2a..f3a3736ad31bd07475f0b197935a8a5a0ab8f0e7 100644 (file)
@@ -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;