← 输入框|github.com|刷新
Skip to content

Commit 370d8d3

Browse files
committed
build: require PHP 8.2 or later
PHP 8.1 reached end of life on 31 December 2025, and roave/security-advisories now conflicts with every PHP 8.1 release, so the 8.1 CI jobs can no longer install their dependencies. Run the lowest-dependency jobs on PHP 8.2 instead. Docker PHP 4.0 remains available for PHP 8.1.
1 parent 2bcaa72 commit 370d8d3

9 files changed

Lines changed: 13 additions & 10 deletions

File tree

‎.github/workflows/continuous-integration.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
php-version:
22-
- "8.1"
2322
- "8.2"
2423
- "8.3"
2524
- "8.4"

‎.github/workflows/documentation.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up PHP
3636
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
3737
with:
38-
php-version: '8.1'
38+
php-version: '8.2'
3939
coverage: none
4040

4141
- name: Install documentation tooling

‎.github/workflows/static-analysis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- php-version: '8.1'
21+
- php-version: '8.2'
2222
dependency-versions: lowest
2323
- php-version: '8.5'
2424
dependency-versions: highest

‎DOCUMENTATION.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ No custom domain is configured.
99

1010
## Local preview
1111

12-
Use Node.js 22 or 24 LTS and PHP 8.1 or later. From the repository root:
12+
Use Node.js 22 or 24 LTS and PHP 8.2 or later. From the repository root:
1313

1414
```bash
1515
cd docs

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ releases.
3434

3535
## Requirements
3636

37-
- PHP 8.1 or later, with the `mbstring` extension.
37+
- PHP 8.2 or later, with the `mbstring` extension.
3838
- [Composer](https://getcomposer.org/).
3939
- Access to a Docker daemon with API v1.45 or later (Docker Engine 26.0 or later).
4040

41+
Docker PHP 4.0 is the last release line that supports PHP 8.1.
42+
4143
## Installation
4244

4345
```bash
@@ -107,7 +109,7 @@ defaults that 2.x and Beluga applications rely on.
107109

108110
### From docker-php 2.x
109111

110-
Version 4.0 requires PHP 8.1 or later, PSR-7 v2 and Jane 7-generated models.
112+
Version 4.1 requires PHP 8.2 or later, PSR-7 v2 and Jane 7-generated models.
111113
Review endpoint signatures, model types and HTTP client dependencies before
112114
upgrading. Check log and exec consumers against the
113115
[streaming documentation](https://docker-php.mintlify.site/reference/streams).

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"type": "library",
66
"require": {
7-
"php": ">=8.1",
7+
"php": ">=8.2",
88
"docker-php/docker-php-api": ">=7.1.45.0 <7.1.57.0",
99
"nyholm/psr7": "^1.8",
1010
"php-http/client-common": "^2.7",

‎docs/contributing.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ files; `docs.json` defines their navigation and site settings.
99

1010
## Preview locally
1111

12-
Use Node.js 22 or 24 LTS and PHP 8.1 or later. From the repository root:
12+
Use Node.js 22 or 24 LTS and PHP 8.2 or later. From the repository root:
1313

1414
```bash
1515
cd docs

‎docs/installation.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ description: "Install the client and its matching generated API package."
55

66
## Requirements
77

8-
- PHP 8.1 or later, with the `mbstring` extension.
8+
- PHP 8.2 or later, with the `mbstring` extension.
99
- [Composer](https://getcomposer.org/).
1010
- Access to a Docker daemon with API v1.45 or later (Docker Engine 26.0 or later).
1111

12+
Docker PHP 4.0 is the last release line that supports PHP 8.1.
13+
1214
## Stable installation
1315

1416
```bash

‎docs/migration.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defaults that 2.x and Beluga applications rely on.
1010

1111
## From the original 2.x client
1212

13-
The new client requires PHP 8.1 or later, the `mbstring` extension, PSR-7 v2 and
13+
The new client requires PHP 8.2 or later, the `mbstring` extension, PSR-7 v2 and
1414
Jane 7 runtimes. Check your application's other dependencies against these
1515
requirements before changing its Composer constraints.
1616

0 commit comments

Comments
 (0)