Skip to content

Commit a4a1a5d

Browse files
committed
added base for PHPStan
1 parent 253960e commit a4a1a5d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"require-dev": {
2424
"nette/tester": "^2.5",
25+
"phpstan/phpstan-nette": "^2",
2526
"symfony/thanks": "^1"
2627
},
2728
"autoload": {
@@ -30,6 +31,7 @@
3031
}
3132
},
3233
"scripts": {
34+
"phpstan": "phpstan analyse",
3335
"tester": "tester tests -s"
3436
},
3537
"minimum-stability": "stable",

phpstan.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
parameters:
2+
level: 5
3+
4+
paths:
5+
- src
6+
- bin
7+
- tests
8+
9+
includes:
10+
- vendor/phpstan/phpstan-nette/extension.neon

0 commit comments

Comments
 (0)