Skip to content

添加自定义ScopingHttpClient降低使用复杂度 (#2766) #1638

添加自定义ScopingHttpClient降低使用复杂度 (#2766)

添加自定义ScopingHttpClient降低使用复杂度 (#2766) #1638

Triggered via push December 14, 2023 04:32
Status Failure
Total duration 35s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors
PHPStan: src/Kernel/Form/File.php#L77
Parameter #1 $contents of static method EasyWeChat\Kernel\Form\File::fromContents() expects string, mixed given.
PHPStan: src/Kernel/HttpClient/AccessTokenAwareClient.php#L45
Property class@anonymous/Kernel/Traits/MockableHttpClient.php:39::$client (Symfony\Contracts\HttpClient\HttpClientInterface) does not accept Mockery\Mock|Symfony\Contracts\HttpClient\HttpClientInterface.
PHPStan: src/Kernel/HttpClient/RequestUtil.php#L112
Cannot access offset 'Content-Type' on mixed.
PHPStan: src/Kernel/HttpClient/RequestUtil.php#L112
Cannot access offset 'content-type' on mixed.
PHPStan: src/Kernel/ServerResponse.php#L45
Method EasyWeChat\Kernel\ServerResponse::withProtocolVersion() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L70
Method EasyWeChat\Kernel\ServerResponse::withHeader() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L75
Method EasyWeChat\Kernel\ServerResponse::withAddedHeader() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L80
Method EasyWeChat\Kernel\ServerResponse::withoutHeader() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L90
Method EasyWeChat\Kernel\ServerResponse::withBody() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/Support/PublicKey.php#L33
Offset 'serialNumberHex' on array on left side of ?? always exists and is not nullable.
PHP-CS-Fxier
Process completed with exit code 1.