Skip to content

Commit 8198555

Browse files
committed
add phpstan
1 parent b8881c3 commit 8198555

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"squizlabs/php_codesniffer": "^3.0",
2828
"oscarotero/php-cs-fixer-config": "^1.0",
2929
"friendsofphp/php-cs-fixer": "^2.15",
30+
"phpstan/phpstan": "^1|^2",
3031
"rector/rector": "^1|^2"
3132
},
3233
"autoload": {
@@ -42,7 +43,8 @@
4243
"scripts": {
4344
"test": [
4445
"phpunit",
45-
"phpcs"
46+
"phpcs",
47+
"phpstan"
4648
],
4749
"cs-fix": "php-cs-fixer fix",
4850
"rector": "rector process"

phpstan.dist.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
level: 5
3+
paths:
4+
- src
5+
- tests

0 commit comments

Comments
 (0)