Skip to content

Commit 445d6b2

Browse files
committed
Update to use mediawiki-codesniffer v48.0.0
Had to update minimum PHP version to 8.1 Fixes #460
1 parent a48cec6 commit 445d6b2

File tree

3 files changed

+70
-156
lines changed

3 files changed

+70
-156
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: [8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
10+
php: [8.1, 8.2, 8.3, 8.4, 8.5]
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
@@ -23,12 +23,7 @@ jobs:
2323
- name: Running phpcs
2424
run: composer run-script cs
2525

26-
# The yaml-sort-checker library requires PHP 8.1 or higher,
27-
# but we want to support older PHP versions,
28-
# so we install the library here
29-
# and not using composer.json
3026
- name: Running yaml-sort-checker
31-
if: ${{ matrix.php >= '8.1' }}
3227
run: composer run-script yaml-sort-check
3328

3429
- name: Run tests

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
}
3232
],
3333
"require": {
34-
"php": ">=8.0"
34+
"php": ">=8.1"
3535
},
3636
"require-dev": {
3737
"ext-curl": "*",
3838
"phpunit/phpunit": "9.6.20",
39-
"mediawiki/mediawiki-codesniffer": "47.0.0",
39+
"mediawiki/mediawiki-codesniffer": "48.0.0",
4040
"mustangostang/spyc": "0.6.3"
4141
},
4242

@@ -65,7 +65,7 @@
6565
"dealerdirect/phpcodesniffer-composer-installer": true
6666
},
6767
"platform": {
68-
"php": "8.0"
68+
"php": "8.1"
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)