Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 2, 2024
1 parent a0b1be8 commit eecd194
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ concurrency:
jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
strategy:
matrix:
php: [8.1, 8.2]
config: [psalm.xml]
include:
- php: 8.3
config: psalm83.xml
with:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
['${{ matrix.php }}']
psalm-config: >-
${{ matrix.config }}
4 changes: 2 additions & 2 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
Expand Down
22 changes: 22 additions & 0 deletions psalm83.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<psalm
errorLevel="2"
findUnusedBaselineEntry="true"
findUnusedCode="false"
resolveFromConfigFile="true"
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 eecd194

Please sign in to comment.