diff --git a/src/Core/Protocol.php b/src/Core/Protocol.php index 3484d281b1..796add5558 100644 --- a/src/Core/Protocol.php +++ b/src/Core/Protocol.php @@ -269,7 +269,7 @@ class Protocol * @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \ImagickException */ - public static function revokeFollow(array $contact) + public static function revokeFollow(array $contact): ?bool { if (empty($contact['network'])) { throw new \InvalidArgumentException('Missing network key in contact array'); diff --git a/src/Model/Contact.php b/src/Model/Contact.php index cbe370a4aa..918eab384f 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -857,7 +857,7 @@ class Contact * @throws HTTPException\InternalServerErrorException * @throws \ImagickException */ - public static function revokeFollow(array $contact): bool + public static function revokeFollow(array $contact): ?bool { if (empty($contact['network'])) { throw new \InvalidArgumentException('Empty network in contact array');