]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Type hints
[friendica.git] / src / Protocol / Diaspora.php
index a0bb0d9fa3a7796a3efdac08067a66aa60b4509b..87ec7d5a0c5937d291f25148ec54f1ce9efc21af 100644 (file)
@@ -55,7 +55,7 @@ class Diaspora
         *
         * @param array $contact of the relay contact
         */
-       public static function markRelayForArchival($contact)
+       public static function markRelayForArchival(array $contact)
        {
                if (!empty($contact['contact-type']) && ($contact['contact-type'] == Contact::TYPE_RELAY)) {
                        // This is already the relay contact, we don't need to fetch it
@@ -174,7 +174,7 @@ class Diaspora
         * @return array with the contact
         * @throws \Exception
         */
-       private static function getRelayContact($server_url, $fields = ['batch', 'id', 'name', 'network', 'protocol', 'archive', 'blocked'])
+       private static function getRelayContact(string $server_url, array $fields = ['batch', 'id', 'name', 'network', 'protocol', 'archive', 'blocked'])
        {
                // Fetch the relay contact
                $condition = ['uid' => 0, 'nurl' => Strings::normaliseLink($server_url),