Closed thelovekesh closed 1 year ago
This PR aims to fix PHPStan errors introduced as a part of https://github.com/ampproject/amp-toolbox-php/pull/534. See the error log.
error log
$url
CurlRemoteGetRequest::get
non-empty-string
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
true
CURLOPT_SSL_VERIFYPEER
false
This PR aims to fix PHPStan errors introduced as a part of https://github.com/ampproject/amp-toolbox-php/pull/534. See the
error log
.Tasks Done
$url
inCurlRemoteGetRequest::get
is anon-empty-string
.curl_setopt($curlHandle, CURLOPT_HEADER, 0);
as we need to passtrue
if we want to enable this option. (Ref).CURLOPT_SSL_VERIFYPEER
value as we need to passfalse
if we want to disable it. (Ref).