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:
parent
012c7cdc1e
commit
66b64c2aa3
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue