Skip to content

Commit 2cabc8a

Browse files
TheNorthMemoryxy-peng
authored andcommitted
PHP8.3 support
1 parent fbe8d7c commit 2cabc8a

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
14+
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
1515
os: [ubuntu-latest, macOS-latest, windows-latest]
1616
runs-on: ${{ matrix.os }}
1717
steps:
@@ -86,8 +86,8 @@ jobs:
8686
id: phpstan-php-7_2-8_1
8787

8888
- run: vendor/bin/phpstan analyse --no-progress --memory-limit=-1 -c phpstan.v8.2.neon
89-
if: matrix.php-version == '8.2'
90-
id: phpstan-php-8_2
89+
if: 8.1 < matrix.php-version && matrix.php-version < '8.4'
90+
id: phpstan-php-8_2-8_3
9191

9292
- run: |
9393
make keygen

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# 变更历史
22

3-
## [1.4.8](../../compare/v1.4.7...v1.4.8) - 2023-01-01
3+
## [1.4.9](../../compare/v1.4.8...v1.4.9) - 2023-11-21
4+
5+
- 支持PHP8.3运行时
6+
7+
## [1.4.8](../../compare/v1.4.7...v1.4.8) - 2023-01-05
48

59
- 新增海外账单下载`/v3/global/statements`应答特殊处理逻辑;
610

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
## 项目状态
2727

28-
当前版本为 `1.4.8` 测试版本。
28+
当前版本为 `1.4.9` 测试版本。
2929
项目版本遵循 [语义化版本号](https://semver.org/lang/zh-CN/)
3030
如果你使用的版本 `<=v1.3.2`,升级前请参考 [升级指南](UPGRADING.md)
3131

bin/CertificateDownloader.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function run(): void
5757
private static function certsInjector(string $apiv3Key, array &$certs): callable {
5858
return static function(ResponseInterface $response) use ($apiv3Key, &$certs): ResponseInterface {
5959
$body = (string) $response->getBody();
60-
/** @var object{data:array<object{encrypt_certificate:object{serial_no:string,nonce:string,associated_data:string}}>} $json */
6160
$json = \json_decode($body);
6261
$data = \is_object($json) && isset($json->data) && \is_array($json->data) ? $json->data : [];
6362
\array_map(static function($row) use ($apiv3Key, &$certs) {
@@ -119,7 +118,6 @@ private function job(array $opts): void
119118
private static function certsRecorder(string $outputDir, array &$certs): callable {
120119
return static function(ResponseInterface $response) use ($outputDir, &$certs): ResponseInterface {
121120
$body = (string) $response->getBody();
122-
/** @var object{data:array<object{effective_time:string,expire_time:string:serial_no:string}>} $json */
123121
$json = \json_decode($body);
124122
$data = \is_object($json) && isset($json->data) && \is_array($json->data) ? $json->data : [];
125123
\array_walk($data, static function($row, $index, $certs) use ($outputDir) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechatpay/wechatpay",
3-
"version": "1.4.8",
3+
"version": "1.4.9",
44
"description": "[A]Sync Chainable WeChatPay v2&v3's OpenAPI SDK for PHP",
55
"type": "library",
66
"keywords": [

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
backupGlobals="false"
44
backupStaticAttributes="false"
55
colors="true"
6-
convertErrorsToExceptions="true"
76
convertNoticesToExceptions="true"
87
convertWarningsToExceptions="true"
98
processIsolation="false"

src/ClientDecoratorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface ClientDecoratorInterface
1414
/**
1515
* @var string - This library version
1616
*/
17-
public const VERSION = '1.4.8';
17+
public const VERSION = '1.4.9';
1818

1919
/**
2020
* @var string - The HTTP transfer `xml` based protocol

tests/BuilderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ class BuilderTest extends TestCase
2424

2525
public function testConstractor(): void
2626
{
27-
if (method_exists($this, 'expectError')) {
28-
$this->expectError();
29-
}
3027
// for PHPUnit8+
3128
if (method_exists($this, 'expectExceptionMessageMatches')) {
3229
$this->expectExceptionMessageMatches('#^Call to private#');

0 commit comments

Comments
 (0)