Skip to content

Commit 62afd79

Browse files
authored
Fix psalm (#179)
1 parent 8e0a232 commit 62afd79

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

.github/workflows/static.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
os: >-
3030
['ubuntu-latest']
3131
php: >-
32-
['8.1', '8.2', '8.3']
32+
['8.1', '8.2']
3333
psalm80:
3434
uses: yiisoft/actions/.github/workflows/psalm.yml@master
3535
with:
@@ -38,3 +38,11 @@ jobs:
3838
['ubuntu-latest']
3939
php: >-
4040
['8.0']
41+
psalm83:
42+
uses: yiisoft/actions/.github/workflows/psalm.yml@master
43+
with:
44+
psalm-config: psalm83.xml
45+
os: >-
46+
['ubuntu-latest']
47+
php: >-
48+
['8.3']

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"rector/rector": "^1.0.0",
4444
"roave/infection-static-analysis-plugin": "^1.16",
4545
"spatie/phpunit-watcher": "^1.23",
46-
"vimeo/psalm": "^4.30|^5.21"
46+
"vimeo/psalm": "^4.30|^5.24"
4747
},
4848
"suggest": {
4949
"symfony/console": "To use composer commands `yii-config-copy` and `yii-config-rebuild`."

psalm83.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="1"
4+
findUnusedBaselineEntry="true"
5+
findUnusedCode="false"
6+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7+
xmlns="https://getpsalm.org/schema/config"
8+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
9+
>
10+
<projectFiles>
11+
<directory name="src" />
12+
<ignoreFiles>
13+
<directory name="vendor" />
14+
</ignoreFiles>
15+
</projectFiles>
16+
<issueHandlers>
17+
<MixedAssignment errorLevel="suppress" />
18+
<RiskyTruthyFalsyComparison errorLevel="suppress" />
19+
<MissingClassConstType errorLevel="suppress" />
20+
</issueHandlers>
21+
</psalm>

0 commit comments

Comments
 (0)