Skip to content

Commit

Permalink
Target PHP 8.2 and above, and upgrade PHPUnit to version 9 (#741)
Browse files Browse the repository at this point in the history
Update CI, Composer, and PHPUnit configuration.

Remove the Maker bundle, as it's not really needed now we're in
maintenanace phase and it means we don't have to upgrade a bunch
of other things to Symfony 6 or 7 right now. We can add it back
in later after the rest of the upgrade if it's still wanted.

Bug: T357844
  • Loading branch information
samwilson authored Mar 4, 2024
1 parent 3682a4e commit 0a51c1d
Show file tree
Hide file tree
Showing 7 changed files with 546 additions and 2,170 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
php: [ '7.4', '8.0', '8.1' ]
php: [ '8.2', '8.3' ]

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .minus-x.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ignore": [
"./bin/.phpunit/phpunit-8.5-0/phpunit"
"./bin/.phpunit/phpunit-9-0/phpunit"
]
}
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "project",
"license": "GPL-3.0-or-later",
"require": {
"php": "^7.2|^8",
"php": "^8.2",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",
Expand Down Expand Up @@ -40,20 +40,18 @@
"mediawiki/minus-x": "^1.1",
"phan/phan": "^5.0",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^8.5",
"slevomat/coding-standard": "^8.0",
"symfony/browser-kit": "^5.4",
"symfony/css-selector": "^5.4",
"symfony/debug-bundle": "^5.4",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^5.4",
"symfony/phpunit-bridge": "^7",
"symfony/stopwatch": "^5.4",
"symfony/web-profiler-bundle": "^5.4"
},
"config": {
"sort-packages": true,
"platform": {
"php": "7.4"
"php": "8.2"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand Down
Loading

0 comments on commit 0a51c1d

Please sign in to comment.