Skip to content

Commit

Permalink
Replace psalm with phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
l-you committed Aug 16, 2023
1 parent a57fbea commit 4fd0745
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
},
"scripts": {
"phpmd": "vendor/bin/phpmd ./src/ text phpmd.ruleset.xml",
"psalm": "vendor/bin/psalm --output-format=phpstorm --no-cache",
"php-cs": "vendor/bin/php-cs-fixer fix",
"php-cs:test": "vendor/bin/php-cs-fixer fix --dry-run",
"phpunit": "./vendor/bin/phpunit tests",
"phpstan": "./vendor/bin/phpstan",
"phpstan": "vendor/bin/phpstan analyse -c phpstan.neon",

"test": [
"@psalm",
"@phpstan",
"@php-cs:test",
"@phpunit",
"@phpmd"
Expand All @@ -32,7 +32,6 @@
"minimum-stability": "stable",
"require-dev": {
"friendsofphp/php-cs-fixer": ">=2.18",
"vimeo/psalm": ">=4.6",
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.8",
"phpmd/phpmd" : "@stable"
Expand Down
10 changes: 6 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: max
paths:
- src
- tests
level: max
paths:
- src
- tests

0 comments on commit 4fd0745

Please sign in to comment.