Merge pull request #7242 from nupplaphil/bugs/6917-php_warning

Add typed parameter for methods in `Friendica\Util\Network`
This commit is contained in:
Hypolite Petovan
2019-06-10 09:22:27 -04:00
committed by GitHub
15 changed files with 53 additions and 59 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class APContact extends BaseObject
$webfinger = 'https://' . $addr_parts[1] . '/.well-known/webfinger?resource=acct:' . urlencode($addr);
$curlResult = Network::curl($webfinger, false, $redirects, ['accept_content' => 'application/jrd+json,application/json']);
$curlResult = Network::curl($webfinger, false, ['accept_content' => 'application/jrd+json,application/json']);
if (!$curlResult->isSuccess() || empty($curlResult->getBody())) {
return false;
}