Replace Psalm with PHPStan

This commit is contained in:
Bubka 2022-09-07 17:50:14 +02:00
parent 61d177aecd
commit 46ef26e9dc
4 changed files with 670 additions and 1557 deletions

View File

@ -41,9 +41,9 @@
"fakerphp/faker": "^1.20",
"mockery/mockery": "^1.5",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.5",
"psalm/plugin-laravel": "1.6.2",
"vimeo/psalm": "^4.26"
"nunomaduro/larastan": "^1.0",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.5"
},
"conflict": {
"khanamiryan/qrcode-detector-decoder": "~1.0.6"

2186
composer.lock generated

File diff suppressed because it is too large Load Diff

14
phpstan.neon Normal file
View File

@ -0,0 +1,14 @@
includes:
- vendor/nunomaduro/larastan/extension.neon
parameters:
level: 6
paths:
- app
- database
- routes
excludePaths:
analyse:
- app/Protobuf/*
ignoreErrors:
checkMissingIterableValueType: false

View File

@ -1,21 +0,0 @@
<?xml version="1.0"?>
<psalm
errorLevel="7"
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="app"/>
<directory name="database/factories"/>
<directory name="database/seeders"/>
<ignoreFiles>
<directory name="vendor"/>
<directory name="app/Protobuf"/>
</ignoreFiles>
</projectFiles>
<plugins>
<pluginClass class="Psalm\LaravelPlugin\Plugin"/>
</plugins>
</psalm>