1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00

Fix psalm config

This commit is contained in:
Niklas Keller 2021-12-03 00:58:44 +01:00
parent ca77e6bbc0
commit d94a1a54aa
3 changed files with 4 additions and 15 deletions

View File

@ -68,10 +68,11 @@ jobs:
composer info -D
- name: Run tests
env:
PHP_CS_FIXER_IGNORE_ENV: 1
run: vendor/bin/phpunit ${{ matrix.phpunit-flags }}
- name: Run static analysis
run: vendor/bin/psalm.phar
- name: Run style fixer
env:
PHP_CS_FIXER_IGNORE_ENV: 1

View File

@ -41,8 +41,7 @@
"amphp/phpunit-util": "v2.x-dev",
"amphp/php-cs-fixer-config": "dev-master",
"phpunit/phpunit": "^9",
"psalm/phar": "^4.7",
"jetbrains/phpstorm-stubs": "^2019.3"
"psalm/phar": "^4.13"
},
"autoload": {
"psr-4": {

View File

@ -9,14 +9,12 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="examples" />
<directory name="src" />
</projectFiles>
<issueHandlers>
<StringIncrement>
<errorLevel type="suppress">
<directory name="examples" />
<directory name="src" />
</errorLevel>
</StringIncrement>
@ -35,23 +33,14 @@
<MissingClosureParamType>
<errorLevel type="suppress">
<directory name="examples" />
<directory name="src" />
</errorLevel>
</MissingClosureParamType>
<MissingClosureReturnType>
<errorLevel type="suppress">
<directory name="examples" />
<directory name="src" />
</errorLevel>
</MissingClosureReturnType>
</issueHandlers>
<stubs>
<file name="vendor/jetbrains/phpstorm-stubs/Ev/Ev.php" />
<file name="vendor/jetbrains/phpstorm-stubs/event/event.php" />
<file name="vendor/jetbrains/phpstorm-stubs/uv/UV.php" />
<file name="vendor/jetbrains/phpstorm-stubs/uv/uv_functions.php" />
</stubs>
</psalm>