File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rules/DeadCode/Rector/ClassMethod Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ private function isParameterAndArgCountAndOrderIdentical(ClassMethod $classMetho
205205
206206 private function areConstructorAndParentParameterTypesMatching (
207207 ClassMethod $ classMethod ,
208- ExtendedMethodReflection $ parentMethodReflection
208+ ExtendedMethodReflection $ extendedMethodReflection
209209 ): bool {
210210 foreach ($ classMethod ->getParams () as $ position => $ param ) {
211211 $ parameterType = $ param ->type ;
@@ -215,7 +215,7 @@ private function areConstructorAndParentParameterTypesMatching(
215215 continue ;
216216 }
217217
218- $ parametersSelector = $ parentMethodReflection ->getOnlyVariant ();
218+ $ parametersSelector = $ extendedMethodReflection ->getOnlyVariant ();
219219
220220 foreach ($ parametersSelector ->getParameters () as $ index => $ parameterReflection ) {
221221 if ($ index !== $ position ) {
You can’t perform that action at this time.
0 commit comments