]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
Merge pull request #11662 from MrPetovan/bug/11661-splitattachment-null
[friendica.git] / src / Util / ParseUrl.php
index abd9154da1cb83ba4adcbf3bd50ec58f00d25d6a..f4c78df8a5772ae381bb3dd5a6eb98edd3c85b6d 100644 (file)
@@ -59,7 +59,7 @@ class ParseUrl
         * @param string $accept content-type to accept
         * @return array content type
         */
-       public static function getContentType(string $url, string $accept = HttpClientAccept::DEFAULT)
+       public static function getContentType(string $url, string $accept = HttpClientAccept::DEFAULT): array
        {
                $curlResult = DI::httpClient()->head($url, [HttpClientOptions::ACCEPT_CONTENT => $accept]);