mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2026-09-13 02:55:38 +08:00
发布: 兼容 PHP 8.1
This commit is contained in:
parent
872eef4eee
commit
cfc7fa4e6f
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -13,6 +13,10 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
php-version: ['8.1', '8.2', '8.3', '8.4']
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -20,7 +24,7 @@ jobs:
|
|||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.4'
|
php-version: ${{ matrix.php-version }}
|
||||||
extensions: json, openssl, simplexml
|
extensions: json, openssl, simplexml
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ WeChatDeveloper 是一个面向 **微信** 与 **支付宝** 的轻量 PHP SDK
|
|||||||
|
|
||||||
## 环境要求
|
## 环境要求
|
||||||
|
|
||||||
- PHP `>= 8.4`
|
- PHP `>= 8.1`
|
||||||
- `ext-json`
|
- `ext-json`
|
||||||
- `ext-openssl`
|
- `ext-openssl`
|
||||||
- `ext-simplexml`
|
- `ext-simplexml`
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.4",
|
"php": ">=8.1",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-openssl": "*",
|
"ext-openssl": "*",
|
||||||
"ext-simplexml": "*",
|
"ext-simplexml": "*",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
"psr/simple-cache": "^3.0"
|
"psr/simple-cache": "^3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^11.5"
|
"phpunit/phpunit": "^10.5 || ^11.5"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user