Skip to content

fix:修复值为0、'0'的参数会被过滤的问题 #1743

fix:修复值为0、'0'的参数会被过滤的问题

fix:修复值为0、'0'的参数会被过滤的问题 #1743

Triggered via pull request December 4, 2024 10:20
Status Failure
Total duration 29s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 warnings
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/ServerResponse.php#L43
Method EasyWeChat\Kernel\ServerResponse::withProtocolVersion() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L68
Method EasyWeChat\Kernel\ServerResponse::withHeader() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L73
Method EasyWeChat\Kernel\ServerResponse::withAddedHeader() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L78
Method EasyWeChat\Kernel\ServerResponse::withoutHeader() should return static(EasyWeChat\Kernel\ServerResponse) but returns Psr\Http\Message\ResponseInterface.
PHPStan: src/Kernel/ServerResponse.php#L88
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.
PHPStan: src/Kernel/Traits/InteractWithHandlers.php (in context of class EasyWeChat/OfficialAccount/Server)#L80
Parameter #1 $object of function spl_object_hash expects object, callable given.
PHPStan: src/Kernel/Traits/InteractWithHandlers.php (in context of class EasyWeChat/OfficialAccount/Server)#L81
Match arm is unreachable because previous comparison is always true.
PHP-CS-Fxier
Process completed with exit code 1.
PHPStan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP-CS-Fxier
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636