mirror of
https://github.com/friendica/friendica
synced 2025-05-01 09:04:24 +02:00
Changes:
- added type-hints - added returned type-hints in interface (I checked all)
This commit is contained in:
parent
c0d7f8944d
commit
bff57bb030
6 changed files with 20 additions and 20 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue