Skip to content

Commit 7fe53bc

Browse files
committed
[ci-review] Rector Rectify
1 parent cf70d11 commit 7fe53bc

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
@@ -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) {

0 commit comments

Comments
 (0)