Address Scrutinizer inspection failure

The variable ``$port`` seems only to be defined at a later point.
As such the call to ``isset()`` seems to always evaluate to ``false``.
This commit is contained in:
Damien Regad 2021-02-07 00:23:03 +01:00
parent 012c7cdc1e
commit 66b64c2aa3
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class HTTPClient {
$use_tls = $this->proxy_ssl;
}else{
$request_url = $path;
if (!isset($port)) $port = ($uri['scheme'] == 'https') ? 443 : 80;
$port = $uriPort ?: ($uri['scheme'] == 'https' ? 443 : 80);
$use_tls = ($uri['scheme'] == 'https');
}