From bf7c66b2c794c1de45efe81fbe59e830afcfa5eb Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 21 Oct 2021 21:53:58 +0200 Subject: [PATCH] Fix Model\Contact\Introduction::confirm() --- src/Model/Contact/Introduction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Contact/Introduction.php b/src/Model/Contact/Introduction.php index f27a4a6ba8..b85e90eaed 100644 --- a/src/Model/Contact/Introduction.php +++ b/src/Model/Contact/Introduction.php @@ -37,14 +37,14 @@ class Introduction * Confirms a follow request and sends a notice to the remote contact. * * @param Entity\Introduction $introduction - * @param bool $duplex - * @param bool $hidden + * @param bool $duplex Is it a follow back? + * @param bool|null $hidden Should this contact be hidden? null = no change * * @throws HTTPException\InternalServerErrorException * @throws HTTPException\NotFoundException * @throws \ImagickException */ - public static function confirm(Entity\Introduction $introduction, bool $duplex = false, bool $hidden = false): void + public static function confirm(Entity\Introduction $introduction, bool $duplex = false, ?bool $hidden = null): void { DI::logger()->info('Confirming follower', ['cid' => $introduction->cid]);