]> git.mxchange.org Git - friendica.git/commitdiff
Add nullability to InstanceV2 Contact type for account parameter
authorHank Grabowski <hankgrabowski@gmail.com>
Sun, 26 Feb 2023 14:38:22 +0000 (09:38 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Sun, 26 Feb 2023 14:38:22 +0000 (09:38 -0500)
src/Object/Api/Mastodon/InstanceV2/Contact.php

index f48b027cf01961332626677407c0780a6589381c..74a6f8e248482bb5ca7d11ada690a1c7812dc6a9 100644 (file)
@@ -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;