From 0f811abc5072d17853929ae7af5c782a5bad8075 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Sun, 26 Feb 2023 09:38:22 -0500 Subject: [PATCH] Add nullability to InstanceV2 Contact type for account parameter --- src/Object/Api/Mastodon/InstanceV2/Contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Object/Api/Mastodon/InstanceV2/Contact.php b/src/Object/Api/Mastodon/InstanceV2/Contact.php index f48b027cf..74a6f8e24 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;