@@ -4,6 +4,7 @@ includes:
4
4
- ../vendor/phpstan/phpstan-phpunit/extension.neon
5
5
- ../vendor/phpstan/phpstan-phpunit/rules.neon
6
6
- ../vendor/phpstan/phpstan-strict-rules/rules.neon
7
+ - ../vendor/shipmonk/dead-code-detector/rules.neon
7
8
- ../conf/bleedingEdge.neon
8
9
- ../phpstan-baseline.neon
9
10
- ../phpstan-baseline.php
@@ -20,6 +21,10 @@ parameters:
20
21
- ../tests/phpstan-bootstrap.php
21
22
cache :
22
23
nodesByStringCountMax : 128
24
+ shipmonkDeadCode :
25
+ usageExcluders :
26
+ tests :
27
+ enabled : true
23
28
checkUninitializedProperties : true
24
29
checkMissingCallableSignature : true
25
30
excludePaths :
@@ -71,6 +76,12 @@ parameters:
71
76
- '#should be contravariant with parameter \$node \ (PhpParser\\Node\ ) of method PHPStan\\Rules\\Rule<PhpParser\\Node>::processNode\ (\ )$ #'
72
77
- ' #Variable property access on PhpParser\\Node #'
73
78
- ' #Test::data[a-zA-Z0-9_ ]+\ (\ ) return type has no value type specified in iterable type #'
79
+ -
80
+ identifier : shipmonk.deadMethod
81
+ message : ' #^Unused .*?Factory::create#' # likely used in DIC
82
+ -
83
+ identifier : shipmonk.deadMethod
84
+ path : ../src/Reflection/BetterReflection/SourceLocator/FileReadTrapStreamWrapper.php
74
85
-
75
86
message : ' #Fetching class constant class of deprecated class DeprecatedAnnotations\\DeprecatedFoo.#'
76
87
path : ../tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php
0 commit comments