Skip to content

Commit bf43ef3

Browse files
committed
Missing rules in StubValidator
1 parent 55ea2ae commit bf43ef3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/PhpDoc/StubValidator.php

+9
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
use PHPStan\Rules\Classes\LocalTypeAliasesCheck;
2727
use PHPStan\Rules\Classes\LocalTypeAliasesRule;
2828
use PHPStan\Rules\Classes\LocalTypeTraitAliasesRule;
29+
use PHPStan\Rules\Classes\MixinRule;
30+
use PHPStan\Rules\Classes\PropertyTagCheck;
31+
use PHPStan\Rules\Classes\PropertyTagRule;
32+
use PHPStan\Rules\Classes\PropertyTagTraitRule;
2933
use PHPStan\Rules\ClassNameCheck;
3034
use PHPStan\Rules\DirectRegistry as DirectRuleRegistry;
3135
use PHPStan\Rules\FunctionDefinitionCheck;
@@ -231,6 +235,11 @@ private function getRuleRegistry(Container $container): RuleRegistry
231235

232236
if ((bool) $container->getParameter('featureToggles')['absentTypeChecks']) {
233237
$rules[] = new MissingMethodSelfOutTypeRule($missingTypehintCheck);
238+
239+
$propertyTagCheck = new PropertyTagCheck($reflectionProvider, $classNameCheck, $genericObjectTypeCheck, $missingTypehintCheck, $unresolvableTypeHelper, true);
240+
$rules[] = new PropertyTagRule($propertyTagCheck);
241+
$rules[] = new PropertyTagTraitRule($propertyTagCheck, $reflectionProvider);
242+
$rules[] = new MixinRule($reflectionProvider, $classNameCheck, $genericObjectTypeCheck, $missingTypehintCheck, $unresolvableTypeHelper, true, true);
234243
}
235244

236245
return new DirectRuleRegistry($rules);

0 commit comments

Comments
 (0)