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 composer info -D
- name: Run tests - name: Run tests
env:
PHP_CS_FIXER_IGNORE_ENV: 1
run: vendor/bin/phpunit ${{ matrix.phpunit-flags }} run: vendor/bin/phpunit ${{ matrix.phpunit-flags }}
- name: Run static analysis
run: vendor/bin/psalm.phar
- name: Run style fixer - name: Run style fixer
env: env:
PHP_CS_FIXER_IGNORE_ENV: 1 PHP_CS_FIXER_IGNORE_ENV: 1

View File

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

View File

@ -9,14 +9,12 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
> >
<projectFiles> <projectFiles>
<directory name="examples" />
<directory name="src" /> <directory name="src" />
</projectFiles> </projectFiles>
<issueHandlers> <issueHandlers>
<StringIncrement> <StringIncrement>
<errorLevel type="suppress"> <errorLevel type="suppress">
<directory name="examples" />
<directory name="src" /> <directory name="src" />
</errorLevel> </errorLevel>
</StringIncrement> </StringIncrement>
@ -35,23 +33,14 @@
<MissingClosureParamType> <MissingClosureParamType>
<errorLevel type="suppress"> <errorLevel type="suppress">
<directory name="examples" />
<directory name="src" /> <directory name="src" />
</errorLevel> </errorLevel>
</MissingClosureParamType> </MissingClosureParamType>
<MissingClosureReturnType> <MissingClosureReturnType>
<errorLevel type="suppress"> <errorLevel type="suppress">
<directory name="examples" />
<directory name="src" /> <directory name="src" />
</errorLevel> </errorLevel>
</MissingClosureReturnType> </MissingClosureReturnType>
</issueHandlers> </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> </psalm>