mirror of
https://github.com/danog/amp.git
synced 2024-12-02 09:27:46 +01:00
Fix psalm config
This commit is contained in:
parent
ca77e6bbc0
commit
d94a1a54aa
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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": {
|
||||
|
11
psalm.xml
11
psalm.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user