mirror of
https://github.com/friendica/friendica
synced 2025-04-20 19:50:12 +00:00
Fix various PHP 8 deprecations
This commit is contained in:
parent
a147038c2e
commit
6f93ee7e49
10 changed files with 19 additions and 23 deletions
|
@ -254,7 +254,7 @@ class HttpClient implements ICanSendHttpRequests
|
|||
$urlResult = $this->resolver->resolveURL($url);
|
||||
|
||||
if ($urlResult->didErrorOccur()) {
|
||||
throw new TransferException($urlResult->getErrorMessageString(), $urlResult->getHTTPStatusCode());
|
||||
throw new TransferException($urlResult->getErrorMessageString(), $urlResult->getHTTPStatusCode() ?? 0);
|
||||
}
|
||||
|
||||
return $urlResult->getURL();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue