wechatpay-apiv3 / wechatpay-php

微信支付 APIv3 的官方 PHP Library,同时也支持 APIv2
Apache License 2.0
475 stars 98 forks source link

optim `make stats` regarding by phpstan/phpstan:^1.8.3 #105

Closed TheNorthMemory closed 1 year ago

TheNorthMemory commented 1 year ago

solved the following static checking issues:

 ------ -----------------------------------------------------------------------------------------
  Line   src/Util/PemUtil.php
 ------ -----------------------------------------------------------------------------------------
  93     Offset 'serialNumberHex' on array on left side of ?? always exists and is not nullable.
 ------ -----------------------------------------------------------------------------------------

 ------ --------------------------------------------
  Line   tests/Util/MediaUtilTest.php
 ------ --------------------------------------------
  50     No error to ignore is reported on line 50.
  62     No error to ignore is reported on line 62.
 ------ --------------------------------------------

 [ERROR] Found 3 errors

make: *** [stats] Error 1