File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 50
50
use PHPStan \Rules \PhpDoc \IncompatiblePhpDocTypeRule ;
51
51
use PHPStan \Rules \PhpDoc \IncompatiblePropertyPhpDocTypeRule ;
52
52
use PHPStan \Rules \PhpDoc \InvalidPhpDocTagValueRule ;
53
+ use PHPStan \Rules \PhpDoc \InvalidPHPStanDocTagRule ;
53
54
use PHPStan \Rules \PhpDoc \InvalidThrowsPhpDocValueRule ;
54
55
use PHPStan \Rules \PhpDoc \UnresolvableTypeHelper ;
55
56
use PHPStan \Rules \Properties \ExistingClassesInPropertiesRule ;
@@ -197,6 +198,14 @@ private function getRuleRegistry(Container $container): RuleRegistry
197
198
$ rules [] = new DuplicateFunctionDeclarationRule ($ reflector , $ relativePathHelper );
198
199
}
199
200
201
+ if ((bool ) $ container ->getParameter ('featureToggles ' )['allInvalidPhpDocs ' ]) {
202
+ $ rules [] = new InvalidPHPStanDocTagRule (
203
+ $ container ->getByType (Lexer::class),
204
+ $ container ->getByType (PhpDocParser::class),
205
+ true ,
206
+ );
207
+ }
208
+
200
209
return new DirectRuleRegistry ($ rules );
201
210
}
202
211
You can’t perform that action at this time.
0 commit comments