X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FEmail.php;h=db22b76973b736ef86f9ecb6a591aca081771c07;hb=c0b3c527d62dfce01df56edd7ffafc51d83ddaf5;hp=18af77b3feeeb846abc3589b5715d8bf0074e1ab;hpb=421dd028cea8102550f6b0140a088c588880a28d;p=friendica.git diff --git a/src/Protocol/Email.php b/src/Protocol/Email.php index 18af77b3fe..db22b76973 100644 --- a/src/Protocol/Email.php +++ b/src/Protocol/Email.php @@ -38,7 +38,7 @@ class Email * @param string $mailbox The mailbox name * @param string $username The username * @param string $password The password - * @return Connection + * @return Connection|resource * @throws \Exception */ public static function connect($mailbox, $username, $password) @@ -63,12 +63,12 @@ class Email } /** - * @param Connection $mbox mailbox - * @param string $email_addr email + * @param Connection|resource $mbox mailbox + * @param string $email_addr 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 []; @@ -113,8 +113,8 @@ class Email } /** - * @param Connection $mbox mailbox - * @param integer $uid user id + * @param Connection|resource $mbox mailbox + * @param integer $uid user id * @return mixed */ public static function messageMeta($mbox, $uid) @@ -124,13 +124,13 @@ class Email } /** - * @param Connection $mbox mailbox - * @param integer $uid user id - * @param string $reply reply + * @param Connection|resource $mbox mailbox + * @param integer $uid user id + * @param string $reply reply * @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; @@ -211,11 +211,11 @@ class Email /** * fetch the specified message part number with the specified subtype * - * @param Connection $mbox mailbox - * @param integer $uid user id - * @param object $p parts - * @param integer $partno part number - * @param string $subtype sub type + * @param Connection|resource $mbox mailbox + * @param integer $uid user id + * @param object $p parts + * @param integer $partno part number + * @param string $subtype sub type * @return string */ private static function messageGetPart($mbox, $uid, $p, $partno, $subtype)