mirror of
https://github.com/friendica/friendica
synced 2025-01-24 08:19:46 +00:00
Fix overly strict return value for revokeFollow methods
This commit is contained in:
parent
8f518af011
commit
880c2148c2
2 changed files with 2 additions and 2 deletions
|
@ -269,7 +269,7 @@ class Protocol
|
||||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||||
* @throws \ImagickException
|
* @throws \ImagickException
|
||||||
*/
|
*/
|
||||||
public static function revokeFollow(array $contact)
|
public static function revokeFollow(array $contact): ?bool
|
||||||
{
|
{
|
||||||
if (empty($contact['network'])) {
|
if (empty($contact['network'])) {
|
||||||
throw new \InvalidArgumentException('Missing network key in contact array');
|
throw new \InvalidArgumentException('Missing network key in contact array');
|
||||||
|
|
|
@ -857,7 +857,7 @@ class Contact
|
||||||
* @throws HTTPException\InternalServerErrorException
|
* @throws HTTPException\InternalServerErrorException
|
||||||
* @throws \ImagickException
|
* @throws \ImagickException
|
||||||
*/
|
*/
|
||||||
public static function revokeFollow(array $contact): bool
|
public static function revokeFollow(array $contact): ?bool
|
||||||
{
|
{
|
||||||
if (empty($contact['network'])) {
|
if (empty($contact['network'])) {
|
||||||
throw new \InvalidArgumentException('Empty network in contact array');
|
throw new \InvalidArgumentException('Empty network in contact array');
|
||||||
|
|
Loading…
Add table
Reference in a new issue