Skip to content

Commit 6c23c61

Browse files
authored
Self check - detect all dead members (#295)
1 parent c6d4a0f commit 6c23c61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

phpstan.neon.dist

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ parameters:
5050
enforceClosureParamNativeTypehint:
5151
enabled: false # we support even PHP 7.4 (cannot use mixed nor unions)
5252

53+
shipmonkDeadCode:
54+
detect:
55+
deadMethods: true
56+
deadConstants: true
57+
deadEnumCases: true
58+
deadProperties:
59+
neverRead: true
60+
neverWritten: true
61+
5362
ignoreErrors:
5463
-
5564
message: "#but it's missing from the PHPDoc @throws tag\\.$#" # allow uncatched exceptions in tests

0 commit comments

Comments
 (0)