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

View 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;