From 880c2148c20b538c674a7db9d24eb374217ad06b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 8 Oct 2021 22:36:31 -0400 Subject: [PATCH] Fix overly strict return value for revokeFollow methods --- src/Core/Protocol.php | 2 +- src/Model/Contact.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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');