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 @@ -201,7 +201,7 @@ private function isParameterAndArgCountAndOrderIdentical(ClassMethod $classMetho
201201
202202 private function areConstructorAndParentParameterTypesMatching (
203203 ClassMethod $ classMethod ,
204- ExtendedMethodReflection $ parentMethodReflection
204+ ExtendedMethodReflection $ extendedMethodReflection
205205 ): bool {
206206 foreach ($ classMethod ->getParams () as $ position => $ param ) {
207207 $ parameterType = $ param ->type ;
@@ -211,7 +211,7 @@ private function areConstructorAndParentParameterTypesMatching(
211211 continue ;
212212 }
213213
214- $ parametersSelector = $ parentMethodReflection ->getOnlyVariant ();
214+ $ parametersSelector = $ extendedMethodReflection ->getOnlyVariant ();
215215
216216 foreach ($ parametersSelector ->getParameters () as $ index => $ parameterReflection ) {
217217 if ($ index !== $ position ) {
You can’t perform that action at this time.
0 commit comments