From cfc7fa4e6ffc1f3f03e7407efabef32e86102519 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 4 May 2026 14:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83:=20=E5=85=BC=E5=AE=B9=20PHP?= =?UTF-8?q?=208.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 6 +++++- README.md | 2 +- composer.json | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf9807c..365d96e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,10 @@ permissions: jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php-version: ['8.1', '8.2', '8.3', '8.4'] steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,7 +24,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.4' + php-version: ${{ matrix.php-version }} extensions: json, openssl, simplexml coverage: none diff --git a/README.md b/README.md index 9086729..089a75c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ WeChatDeveloper 是一个面向 **微信** 与 **支付宝** 的轻量 PHP SDK ## 环境要求 -- PHP `>= 8.4` +- PHP `>= 8.1` - `ext-json` - `ext-openssl` - `ext-simplexml` diff --git a/composer.json b/composer.json index fa48d6c..9cc9d7c 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": ">=8.4", + "php": ">=8.1", "ext-json": "*", "ext-openssl": "*", "ext-simplexml": "*", @@ -26,7 +26,7 @@ "psr/simple-cache": "^3.0" }, "require-dev": { - "phpunit/phpunit": "^11.5" + "phpunit/phpunit": "^10.5 || ^11.5" }, "autoload": { "psr-4": {