Skip to content

Commit 6a6ff9f

Browse files
committed
Add workaround for Psalm and PHP 8.5
1 parent 23c2c53 commit 6a6ff9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ jobs:
7878
key: "cache-composer-${{ hashFiles('composer.json') }}"
7979
restore-keys: 'cache-composer-'
8080
- name: Run composer
81+
if: ${{ matrix.php_version != '8.5' }}
8182
run: composer update ${{ matrix.dependencies_level }} --prefer-dist --no-interaction --no-progress
83+
- name: Run composer PHP 8.5 workaround
84+
if: ${{ matrix.php_version == '8.5' }}
85+
run: composer update ${{ matrix.dependencies_level }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
8286
- name: Check composer.json
8387
run: composer normalize --dry-run
8488
- name: Run tests
@@ -88,7 +92,7 @@ jobs:
8892
- name: Run PHPStan
8993
run: vendor/bin/phpstan analyse --no-progress
9094
- name: Run psalm
91-
if: ${{ matrix.os != 'windows-latest' }}
95+
if: ${{ matrix.os != 'windows-latest' && matrix.php_version != '8.5' }}
9296
run: vendor/bin/psalm
9397
- name: Run phan
9498
if: ${{ matrix.os != 'windows-latest' }}

0 commit comments

Comments
 (0)