Skip to content

Commit 6e66489

Browse files
committed
Replace vslam with phpstan
1 parent e817c85 commit 6e66489

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

composer.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131
},
3232
"require-dev": {
3333
"laravel/pint": "^1.1",
34+
"nunomaduro/collision": "^6.2",
35+
"nunomaduro/larastan": "^2.1",
3436
"orchestra/testbench": "^6.9|^7.0",
35-
"phpunit/phpunit": "^9.3",
36-
"psalm/plugin-laravel": "^2.0",
37-
"vimeo/psalm": "^4.4"
37+
"phpstan/extension-installer": "^1.1",
38+
"phpstan/phpstan-deprecation-rules": "^1.0",
39+
"phpunit/phpunit": "^9.3"
3840
},
3941
"autoload": {
4042
"psr-4": {
@@ -47,13 +49,16 @@
4749
}
4850
},
4951
"scripts": {
50-
"psalm": "vendor/bin/psalm",
52+
"analyse": "vendor/bin/phpstan analyse",
5153
"test": "./vendor/bin/testbench package:test --parallel --no-coverage",
5254
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
5355
"format": "vendor/bin/pint"
5456
},
5557
"config": {
56-
"sort-packages": true
58+
"sort-packages": true,
59+
"allow-plugins": {
60+
"phpstan/extension-installer": true
61+
}
5762
},
5863
"extra": {
5964
"laravel": {

phpstan-baseline.neon

Whitespace-only changes.

phpstan.neon.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
4+
parameters:
5+
level: 4
6+
paths:
7+
- src
8+
tmpDir: build/phpstan
9+
checkOctaneCompatibility: true
10+
checkModelProperties: true
11+
checkMissingIterableValueType: false

0 commit comments

Comments
 (0)