diff --git a/rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector/Fixture/skip_final_construct.php.inc b/rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector/Fixture/skip_final_construct.php.inc new file mode 100644 index 00000000000..1b070c04436 --- /dev/null +++ b/rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector/Fixture/skip_final_construct.php.inc @@ -0,0 +1,13 @@ +isFinal()) { + return null; + } + + if (! $node->isPublic()) { + return null; + } + $parentMethodReflection = $this->matchParentConstructorReflection($node); if (! $parentMethodReflection instanceof ExtendedMethodReflection) { return null;