Skip to content

Commit 1d5b292

Browse files
committed
Try and ignore php-cs-fixer warning for php8.4
1 parent 4db5b07 commit 1d5b292

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: [8.2, 8.3, 8.4]
12+
php:
13+
- version: 8.2
14+
- version: 8.3
15+
- version: 8.4
16+
env: PHP_CS_FIXER_IGNORE_ENV=1
1317
stability: [prefer-lowest, prefer-stable]
1418

15-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
19+
name: PHP ${{ matrix.php.version }} - ${{ matrix.stability }}
1620

1721
steps:
1822
- name: Checkout code
1923
uses: actions/checkout@v4
2024
- name: Setup PHP
2125
uses: shivammathur/setup-php@v2
2226
with:
23-
php-version: ${{ matrix.php }}
27+
php-version: ${{ matrix.php.version }}
2428
tools: composer:v2, cs2pr
2529
coverage: none
2630
- name: Setup problem matchers for PHPUnit
@@ -32,12 +36,12 @@ jobs:
3236
uses: actions/cache@v4
3337
with:
3438
path: ${{ steps.composer-cache.outputs.dir }}
35-
key: dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }}
36-
restore-keys: dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-
39+
key: dependencies-${{ matrix.php.version }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }}
40+
restore-keys: dependencies-${{ matrix.php.version }}-${{ matrix.stability }}-composer-
3741
- name: Install dependencies
3842
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3943
- name: Check coding style
40-
run: composer run style:check -- --format=checkstyle | cs2pr
44+
run: ${{ matrix.php.env }} composer run style:check -- --format=checkstyle | cs2pr
4145
- name: Check static analysis
4246
run: composer run analyze -- --error-format=checkstyle | cs2pr
4347
- name: Configure matchers for PHPUnit

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
"mockery/mockery": "^1.4.4",
3131
"orchestra/testbench": "^9.0",
3232
"pestphp/pest": "^2.28",
33-
"phpstan/phpstan": "^2.0",
34-
"staabm/annotate-pull-request-from-checkstyle": "^1.8"
33+
"phpstan/phpstan": "^2.0"
3534
},
3635
"autoload": {
3736
"psr-4": {

0 commit comments

Comments
 (0)