Skip to content

Commit ef2c2ed

Browse files
committed
add phpstan
1 parent 6d95716 commit ef2c2ed

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"require-dev": {
2828
"mockery/mockery": "^1.0",
29+
"phpstan/phpstan": "^1.9",
2930
"phpunit/phpunit": "^9.0"
3031
},
3132
"autoload": {
@@ -47,7 +48,8 @@
4748
},
4849
"scripts": {
4950
"test": "phpunit",
50-
"test:coverage": "phpunit --coverage-text --coverage-clover=coverage.clover"
51+
"test:coverage": "phpunit --coverage-text --coverage-clover=coverage.clover",
52+
"analyse": "phpstan analyse"
5153
},
5254
"config": {
5355
"sort-packages": true

phpstan-baseline.neon

Whitespace-only changes.

phpstan.neon.dist

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

0 commit comments

Comments
 (0)