Skip to content

Commit

Permalink
Fix psalm (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed May 3, 2024
1 parent 8e0a232 commit 62afd79
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/static.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['8.1', '8.2']
psalm80:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
with:
Expand All @@ -38,3 +38,11 @@ jobs:
['ubuntu-latest']
php: >-
['8.0']
psalm83:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
with:
psalm-config: psalm83.xml
os: >-
['ubuntu-latest']
php: >-
['8.3']
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -43,7 +43,7 @@
"rector/rector": "^1.0.0",
"roave/infection-static-analysis-plugin": "^1.16",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^4.30|^5.21"
"vimeo/psalm": "^4.30|^5.24"
},
"suggest": {
"symfony/console": "To use composer commands `yii-config-copy` and `yii-config-rebuild`."
Expand Down
21 changes: 21 additions & 0 deletions psalm83.xml
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<MixedAssignment errorLevel="suppress" />
<RiskyTruthyFalsyComparison errorLevel="suppress" />
<MissingClassConstType errorLevel="suppress" />
</issueHandlers>
</psalm>

0 comments on commit 62afd79

Please sign in to comment.