Skip to content

Commit 017b5fe

Browse files
committed
Skip psalm on PHP 8.1
We keep 8.1 supported, but don't run Psalm on it anymore.
1 parent db2dc94 commit 017b5fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
include:
1212
- operating-system: 'ubuntu-latest'
1313
php-version: '8.1'
14+
psalm: 'skip'
1415

1516
- operating-system: 'ubuntu-latest'
1617
php-version: '8.2'
@@ -65,6 +66,10 @@ jobs:
6566
composer-${{ runner.os }}-
6667
composer-
6768
69+
- name: Remove psalm/phar
70+
run: composer remove --no-update --dev psalm/phar
71+
if: matrix.psalm == 'skip'
72+
6873
- name: Install dependencies
6974
uses: nick-invision/retry@v2
7075
with:
@@ -80,7 +85,7 @@ jobs:
8085

8186
- name: Run static analysis
8287
run: vendor/bin/psalm.phar
83-
if: matrix.static-analysis != 'none'
88+
if: matrix.psalm != 'skip'
8489

8590
- name: Run style fixer
8691
env:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require-dev": {
1818
"amphp/php-cs-fixer-config": "^2",
1919
"phpunit/phpunit": "^9",
20-
"psalm/phar": "5.23.1 | 6.15.1"
20+
"psalm/phar": "6.15.1"
2121
},
2222
"autoload": {
2323
"psr-4": {

0 commit comments

Comments
 (0)