Skip to content

Commit da67d61

Browse files
committed
Upgrade to Psalm 6
1 parent 9e587de commit da67d61

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
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'
@@ -20,14 +21,9 @@ jobs:
2021

2122
- operating-system: 'ubuntu-latest'
2223
php-version: '8.4'
23-
static-analysis: none
24-
style-fix: none
2524

2625
- operating-system: 'ubuntu-latest'
2726
php-version: '8.5'
28-
static-analysis: none
29-
style-fix: none
30-
3127

3228
name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }}
3329

@@ -69,6 +65,10 @@ jobs:
6965
composer-${{ runner.os }}-
7066
composer-
7167
68+
- name: Remove psalm/phar
69+
run: composer remove --no-update --dev psalm/phar
70+
if: matrix.psalm == 'skip'
71+
7272
- name: Install dependencies
7373
uses: nick-invision/retry@v2
7474
with:
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: Run static analysis
8686
run: vendor/bin/psalm.phar
87-
if: matrix.static-analysis != 'none'
87+
if: matrix.psalm != 'skip'
8888

8989
- name: Run style fixer
9090
env:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"amphp/phpunit-util": "^3",
3232
"phpunit/phpunit": "^9",
3333
"amphp/php-cs-fixer-config": "^2",
34-
"psalm/phar": "5.23"
34+
"psalm/phar": "6.15.1"
3535
},
3636
"autoload": {
3737
"psr-4": {

psalm.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
</errorLevel>
2828
</MissingClosureReturnType>
2929

30+
<PossiblyUnusedMethod>
31+
<errorLevel type="suppress">
32+
<directory name="src"/>
33+
</errorLevel>
34+
</PossiblyUnusedMethod>
35+
3036
<RiskyTruthyFalsyComparison>
3137
<errorLevel type="suppress">
3238
<directory name="src"/>

0 commit comments

Comments
 (0)