Skip to content

Commit 0b8d66a

Browse files
Enabled more static analysis rules
1 parent 4b43be6 commit 0b8d66a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

phpstan.neon.dist

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
includes:
22
- phpstan-baseline.neon
3+
- vendor-bin/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
4+
- vendor-bin/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon
5+
- vendor-bin/phpstan/vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
6+
7+
rules:
8+
- Ergebnis\PHPStan\Rules\Closures\NoNullableReturnTypeDeclarationRule
9+
- Ergebnis\PHPStan\Rules\Expressions\NoCompactRule
10+
- Ergebnis\PHPStan\Rules\Expressions\NoEmptyRule
11+
- Ergebnis\PHPStan\Rules\Expressions\NoEvalRule
12+
- Ergebnis\PHPStan\Rules\Methods\PrivateInFinalClassRule
313

414
parameters:
515
level: max

vendor-bin/phpstan/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"require": {
33
"phpstan/phpstan": "~0.12.32",
4-
"phpstan/extension-installer": "~1.0.4",
54
"phpstan/phpstan-deprecation-rules": "~0.12.4",
65
"phpstan/phpstan-strict-rules": "~0.12.2",
7-
"thecodingmachine/phpstan-strict-rules": "~0.12.0"
6+
"thecodingmachine/phpstan-strict-rules": "~0.12.0",
7+
"ergebnis/phpstan-rules": "~0.15.0"
88
},
99
"config": {
1010
"preferred-install": "dist"

0 commit comments

Comments
 (0)