chore: update to phpstan major version 2 #183
Annotations
10 errors and 1 warning
Code Analysis (PHPStan):
lib/Client.php#L160
Ignored error pattern #^Left side of || is always false.$# in path /home/runner/work/http/http/lib/Client.php is expected to occur 6 times, but occurred 19 times.
|
Code Analysis (PHPStan):
lib/Client.php#L281
Parameter #1 $multi_handle of function curl_multi_select expects CurlMultiHandle, resource|null given.
|
Code Analysis (PHPStan):
lib/Client.php#L306
Method Sabre\HTTP\Client::addCurlSetting() has parameter $value with no type specified.
|
Code Analysis (PHPStan):
lib/Client.php#L319
Property Sabre\HTTP\Client::$curlHandle (resource|null) does not accept (CurlHandle|false).
|
Code Analysis (PHPStan):
lib/Client.php#L321
Parameter #1 $handle of function curl_reset expects CurlHandle, resource given.
|
Code Analysis (PHPStan):
lib/Client.php#L342
Property Sabre\HTTP\Client::$curlHandle (resource|null) is never assigned resource so it can be removed from the property type.
|
Code Analysis (PHPStan):
lib/Client.php#L351
Property Sabre\HTTP\Client::$curlMultiHandle (resource|null) is never assigned resource so it can be removed from the property type.
|
Code Analysis (PHPStan):
lib/Client.php#L389
Call to function array_key_exists() with 'size' and array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, ...} will always evaluate to true.
|
Code Analysis (PHPStan):
lib/Client.php#L550
Strict comparison using === between false and string will always evaluate to false.
|
Code Analysis (PHPStan):
lib/Client.php#L579
Property Sabre\HTTP\Client::$curlMultiHandle (resource|null) does not accept CurlMultiHandle.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading