variable type for the return value is added
This commit is contained in:
parent
1ec1adf904
commit
31dbdd3677
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user