|
68 | 68 | use PHPStan\Rules\Methods\ExistingClassesInTypehintsRule; |
69 | 69 | use PHPStan\Rules\Methods\MethodParameterComparisonHelper; |
70 | 70 | use PHPStan\Rules\Methods\MethodSignatureRule; |
| 71 | +use PHPStan\Rules\Methods\MethodVisibilityComparisonHelper; |
71 | 72 | use PHPStan\Rules\Methods\MissingMethodParameterTypehintRule; |
72 | 73 | use PHPStan\Rules\Methods\MissingMethodReturnTypehintRule; |
73 | 74 | use PHPStan\Rules\Methods\MissingMethodSelfOutTypeRule; |
@@ -209,7 +210,15 @@ private function getRuleRegistry(Container $container): RuleRegistry |
209 | 210 | new ExistingClassesInTypehintsRule($functionDefinitionCheck), |
210 | 211 | new \PHPStan\Rules\Functions\ExistingClassesInTypehintsRule($functionDefinitionCheck), |
211 | 212 | new ExistingClassesInPropertiesRule($reflectionProvider, $classNameCheck, $unresolvableTypeHelper, $phpVersion, true, false), |
212 | | - new OverridingMethodRule($phpVersion, new MethodSignatureRule($phpClassReflectionExtension, true, true), true, new MethodParameterComparisonHelper($phpVersion), $phpClassReflectionExtension, $container->getParameter('checkMissingOverrideMethodAttribute')), |
| 213 | + new OverridingMethodRule( |
| 214 | + $phpVersion, |
| 215 | + new MethodSignatureRule($phpClassReflectionExtension, true, true), |
| 216 | + true, |
| 217 | + new MethodParameterComparisonHelper($phpVersion), |
| 218 | + new MethodVisibilityComparisonHelper(), |
| 219 | + $phpClassReflectionExtension, |
| 220 | + $container->getParameter('checkMissingOverrideMethodAttribute'), |
| 221 | + ), |
213 | 222 | new DuplicateDeclarationRule(), |
214 | 223 | new LocalTypeAliasesRule($localTypeAliasesCheck), |
215 | 224 | new LocalTypeTraitAliasesRule($localTypeAliasesCheck, $reflectionProvider), |
|
0 commit comments