Skip to content

Commit 8735fa3

Browse files
committedMar 14, 2025··
Configure ergebnis/phpstan-rules
·
12.2.212.1.0
1 parent a250e5a commit 8735fa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4384
-4
lines changed
 

‎phpstan.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ parameters:
3030
switchConditionsMatchingType: true
3131
uselessCast: true
3232

33+
ergebnis:
34+
allRules: false
35+
final:
36+
enabled: true
37+
classesNotRequiredToBeAbstractOrFinal:
38+
- PHPUnit\Framework\Constraint\Count
39+
- PHPUnit\Framework\AssertionFailedError
40+
- PHPUnit\Framework\Exception
41+
- PHPUnit\Framework\TestSuite
42+
privateInFinalClass:
43+
enabled: true
44+
3345
type_coverage:
3446
declare: 100
3547
return: 100

‎tools/.phpstan/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"phpstan/phpstan": "^2.1.8",
44
"phpstan/extension-installer": "^1.4.3",
55
"phpstan/phpstan-strict-rules": "^2.0.3",
6-
"tomasvotruba/type-coverage": "^2.0.2"
6+
"tomasvotruba/type-coverage": "^2.0.2",
7+
"ergebnis/phpstan-rules": "^2.8.0"
78
},
89
"config": {
910
"allow-plugins": {

0 commit comments

Comments
 (0)
Please sign in to comment.