- added type-hints
- added returned type-hints in interface (I checked all)
This commit is contained in:
Roland Häder 2022-06-19 13:59:58 +02:00
parent c0d7f8944d
commit bff57bb030
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
6 changed files with 20 additions and 20 deletions

View 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]);