Skip to content

Commit 8c653dc

Browse files
committed
Add phpstan plus official extensions
1 parent 72a4bd6 commit 8c653dc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"ergebnis/composer-normalize": "^2.4",
1414
"php-parallel-lint/php-parallel-lint": "^1.2",
1515
"phpmd/phpmd": "^2.8",
16+
"phpstan/phpstan": "^0.12",
17+
"phpstan/phpstan-deprecation-rules": "^0.12",
18+
"phpstan/phpstan-mockery": "^0.12",
19+
"phpstan/phpstan-phpunit": "^0.12",
20+
"phpstan/phpstan-strict-rules": "^0.12",
1621
"symplify/easy-coding-standard-prefixed": "^7.2"
1722
}
1823
}

phpstan.neon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
includes:
2+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
3+
- vendor/phpstan/phpstan-strict-rules/rules.neon
4+
- vendor/phpstan/phpstan-mockery/extension.neon
5+
- vendor/phpstan/phpstan-phpunit/extension.neon
6+
- vendor/phpstan/phpstan-phpunit/rules.neon
7+
8+
parameters:
9+
level: max

0 commit comments

Comments
 (0)