Skip to content

Commit 0b320ff

Browse files
Support PHP 8.1 and up
Lower the runtime and package floor from PHP 8.2 to 8.1 (composer.json, runtime/composer.json, Dockerfile) and rebuild the committed PHAR so its embedded platform check floors at 8.1.0 rather than rejecting 8.1 at startup. The daemon source already used no syntax above 8.1, so no application code changed. Expand the CI test matrix to 8.3-8.5, where the Pest 4 toolchain runs (Pest 4 requires PHP 8.3). The PHP 8.1 runtime is validated end to end by the Docker smoke job, which boots the daemon on the php:8.1 image and forwards a payload.
1 parent 6845328 commit 0b320ff

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: true
2929
matrix:
3030
os: [ubuntu-latest]
31-
php: [8.4]
31+
php: [8.3, 8.4, 8.5]
3232
stability: [prefer-lowest, prefer-stable]
3333

3434
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY . .
77
RUN composer check-platform-reqs --no-dev
88
RUN FLARE_DAEMON_VERSION=${FLARE_DAEMON_VERSION} bash ./build.sh
99

10-
FROM php:8.2-cli-alpine
10+
FROM php:8.1-cli-alpine
1111

1212
ARG FLARE_DAEMON_VERSION=dev
1313

build/daemon.phar

22 Bytes
Binary file not shown.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"require": {
2121
"composer-runtime-api": "^2.2",
22-
"php": "^8.2",
22+
"php": "^8.1",
2323
"ext-zlib": "*"
2424
},
2525
"require-dev": {

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"require": {
77
"composer-runtime-api": "^2.2",
8-
"php": "^8.2",
8+
"php": "^8.1",
99
"ext-zlib": "*",
1010
"psr/http-message": "^1.1|^2.0",
1111
"react/event-loop": "^1.5",

0 commit comments

Comments
 (0)