From: Hypolite Petovan Date: Sat, 9 Oct 2021 02:36:31 +0000 (-0400) Subject: Fix overly strict return value for revokeFollow methods X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=880c2148c20b538c674a7db9d24eb374217ad06b;p=friendica.git Fix overly strict return value for revokeFollow methods --- 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');