mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
variable type for the return value is added
This commit is contained in:
parent
1ec1adf904
commit
31dbdd3677
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue