Skip to content

Commit bfb1fc9

Browse files
committed
Allow installing dependencies on PHP 8.4 even when not all of them support it
1 parent d8b96f9 commit bfb1fc9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
- name: "Validate Composer"
4242
run: "composer validate"
4343

44+
- name: "Allow installing on PHP 8.4"
45+
if: matrix.php-version == '8.4'
46+
run: "composer config platform.php 8.3.99"
47+
4448
- name: "Downgrade PHPUnit"
4549
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
4650
run: "composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies"
@@ -131,6 +135,10 @@ jobs:
131135
ini-file: development
132136
extensions: "mongodb"
133137

138+
- name: "Allow installing on PHP 8.4"
139+
if: matrix.php-version == '8.4'
140+
run: "composer config platform.php 8.3.99"
141+
134142
- name: "Downgrade PHPUnit"
135143
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
136144
run: "composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies"
@@ -186,6 +194,10 @@ jobs:
186194
extensions: "mongodb"
187195
ini-file: development
188196

197+
- name: "Allow installing on PHP 8.4"
198+
if: matrix.php-version == '8.4'
199+
run: "composer config platform.php 8.3.99"
200+
189201
- name: "Downgrade PHPUnit"
190202
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
191203
run: "composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies"

.github/workflows/platform-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ jobs:
5151
ini-file: development
5252
extensions: pdo, mysqli, pgsql, pdo_mysql, pdo_pgsql, pdo_sqlite, mongodb
5353

54+
- name: "Allow installing on PHP 8.4"
55+
if: matrix.php-version == '8.4'
56+
run: "composer config platform.php 8.3.99"
57+
5458
- name: "Install dependencies"
5559
run: "composer install --no-interaction --no-progress"
5660

0 commit comments

Comments
 (0)