diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector/Fixture/skip_parent_does_not_has_default_param.php.inc b/rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector/Fixture/skip_parent_does_not_has_default_param.php.inc new file mode 100644 index 00000000000..57be0e36c98 --- /dev/null +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector/Fixture/skip_parent_does_not_has_default_param.php.inc @@ -0,0 +1,13 @@ +isDefaultValueAvailable()) { + return true; + } + $parentDefault = $nativeParentParameterReflection->getDefaultValue(); if (! $this->valueResolver->isValue($defaultExpr, $parentDefault)) { return true;