From: Hank Grabowski Date: Sun, 26 Feb 2023 14:38:22 +0000 (-0500) Subject: Add nullability to InstanceV2 Contact type for account parameter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f811abc5072d17853929ae7af5c782a5bad8075;p=friendica.git Add nullability to InstanceV2 Contact type for account parameter --- diff --git a/src/Object/Api/Mastodon/InstanceV2/Contact.php b/src/Object/Api/Mastodon/InstanceV2/Contact.php index f48b027cf0..74a6f8e248 100644 --- a/src/Object/Api/Mastodon/InstanceV2/Contact.php +++ b/src/Object/Api/Mastodon/InstanceV2/Contact.php @@ -39,9 +39,9 @@ class Contact extends BaseDataTransferObject /** * @param string $email - * @param Account $account + * @param Account|null $account */ - public function __construct(string $email, Account $account) + public function __construct(string $email, ?Account $account) { $this->email = $email; $this->account = $account;