Skip to content

Commit 581465b

Browse files
authored
Merge pull request #25 from potherca-contrib/update/slevomat-coding-standard-to-8.20
Update slevomat/coding-standard to allow versions up to v8.20
2 parents b0f120e + c104be2 commit 581465b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,22 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
php-version: [ '7.3', '7.4', '8.0', '8.1', '8.2' ]
16+
php-version:
17+
- 7.3 # from 2018-12 to 2020-12 (2021-12)
18+
- 7.4 # from 2019-11 to 2021-11 (2022-11)
19+
- 8.0 # from 2020-11 to 2022-11 (2023-11)
20+
- 8.1 # from 2021-11 to 2023-11 (2025-12)
21+
- 8.2 # from 2022-12 to 2024-12 (2026-12)
22+
- 8.3 # from 2023-11 to 2025-12 (2027-12)
23+
- 8.4 # from 2024-11 to 2026-12 (2028-12)
24+
- 8.5 # from 2025-11 to 2027-12 (2029-12)
25+
26+
# Prevent unsupported versions of PHP to fail the CI run
27+
continue-on-error: ${{ contains(fromJson('[ "7.3", "7.4", "8.0", "8.1", "8.2" ]'), matrix.php-version) == false }}
1728

1829
steps:
1930
- name: Checkout code
20-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
2132

2233
- name: Setup PHP
2334
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": "^7.1 || ^8.0",
2020
"squizlabs/php_codesniffer": "^3.0.0",
21-
"slevomat/coding-standard": "^6.0 || ^7.0 || ^8.0 <= 8.15.0"
21+
"slevomat/coding-standard": "^6.0 || ^7.0 || ^8.0 <= 8.20.0"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^8.5.12"

0 commit comments

Comments
 (0)