Skip to content

Commit 06ecaa3

Browse files
committed
[ci-review] Rector Rectify
1 parent a6e8ce6 commit 06ecaa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)