File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 5050use PHPStan \Rules \PhpDoc \IncompatiblePhpDocTypeRule ;
5151use PHPStan \Rules \PhpDoc \IncompatiblePropertyPhpDocTypeRule ;
5252use PHPStan \Rules \PhpDoc \InvalidPhpDocTagValueRule ;
53+ use PHPStan \Rules \PhpDoc \InvalidPHPStanDocTagRule ;
5354use PHPStan \Rules \PhpDoc \InvalidThrowsPhpDocValueRule ;
5455use PHPStan \Rules \PhpDoc \UnresolvableTypeHelper ;
5556use PHPStan \Rules \Properties \ExistingClassesInPropertiesRule ;
@@ -197,6 +198,14 @@ private function getRuleRegistry(Container $container): RuleRegistry
197198 $ rules [] = new DuplicateFunctionDeclarationRule ($ reflector , $ relativePathHelper );
198199 }
199200
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+
200209 return new DirectRuleRegistry ($ rules );
201210 }
202211
You can’t perform that action at this time.
0 commit comments