Skip to content

Commit fdd5a4c

Browse files
committed
ci: drop PHPUnit 8 support
With PHP 7.4 as the minimum, PHPUnit 9 (which requires PHP 7.3+) covers the entire supported range. This removes the PHPUnit 8 schema validation step and tightens the Composer constraint accordingly.
1 parent dbe0fc0 commit fdd5a4c

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/basics.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,8 @@ jobs:
7474
pattern: ".phpcs.xml.dist"
7575
xsd-file: "vendor/squizlabs/php_codesniffer/phpcs.xsd"
7676

77-
# Notes:
78-
# - PHPUnit 9.5 (which will be installed in this job) doesn't ship XSD files further back than 8.5.
79-
# - PHPUnit 9.3 introduced some new configuration options and deprecated the old versions of those.
80-
# For cross-version compatibility with older PHPUnit versions, those new config options cannot be used yet,
81-
# which is why the PHPUnit 9 validation is done against the PHPUnit 9.2 schema.
82-
- name: "Validate PHPUnit config for use with PHPUnit 8"
83-
uses: phpcsstandards/xmllint-validate@v1
84-
with:
85-
pattern: "phpunit.xml.dist"
86-
xsd-file: "vendor/phpunit/phpunit/schema/8.5.xsd"
87-
77+
# Note: PHPUnit 9.3 introduced some new configuration options and deprecated the old versions of those.
78+
# For cross-version compatibility, the validation is done against the PHPUnit 9.2 schema.
8879
- name: "Validate PHPUnit config for use with PHPUnit 9"
8980
uses: phpcsstandards/xmllint-validate@v1
9081
with:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"php-parallel-lint/php-console-highlighter": "^1.0.0",
2929
"phpcompatibility/php-compatibility": "^9",
3030
"phpcsstandards/phpcsdevtools": "^1.2.3",
31-
"phpunit/phpunit": "^8 || ^9"
31+
"phpunit/phpunit": "^9"
3232
},
3333
"config": {
3434
"allow-plugins": {

0 commit comments

Comments
 (0)