Skip to content

Commit 2bd5f6a

Browse files
committed
Fix
1 parent b94f54c commit 2bd5f6a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ private function areConstructorAndParentParameterTypesMatching(
232232

233233
// no type override
234234
if ($parameterType === null) {
235+
if ($param->default instanceof Expr && $this->isDifferentDefaultValue($param->default, $extendedMethodReflection, $position)) {
236+
return false;
237+
}
238+
235239
continue;
236240
}
237241

0 commit comments

Comments
 (0)