variable type for the return value is added

This commit is contained in:
Michael 2022-03-06 12:21:27 +00:00
parent 1ec1adf904
commit 31dbdd3677
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class Email
* @return array * @return array
* @throws \Exception * @throws \Exception
*/ */
public static function poll($mbox, $email_addr) public static function poll($mbox, $email_addr): array
{ {
if (!$mbox || !$email_addr) { if (!$mbox || !$email_addr) {
return []; return [];
@ -130,7 +130,7 @@ class Email
* @return array * @return array
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/ */
public static function getMessage($mbox, $uid, $reply, $item) public static function getMessage($mbox, $uid, $reply, $item): array
{ {
$ret = $item; $ret = $item;