phpstan 1.5.1

This commit is contained in:
Dylan K. Taylor
2022-03-28 17:12:00 +01:00
parent 8ea106c091
commit 194cb1fb84
6 changed files with 21 additions and 42 deletions

View File

@ -220,7 +220,6 @@ class Internet{
}
if(!is_string($raw)) throw new AssumptionFailedError("curl_exec() should return string|false when CURLOPT_RETURNTRANSFER is set");
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if(!is_int($httpCode)) throw new AssumptionFailedError("curl_getinfo(CURLINFO_HTTP_CODE) always returns int");
$headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
$rawHeaders = substr($raw, 0, $headerSize);
$body = substr($raw, $headerSize);