diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationBasedOnParentClassMethodRector/Fixture/skip_destruct.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationBasedOnParentClassMethodRector/Fixture/skip_destruct.php.inc new file mode 100644 index 00000000000..53440202b9d --- /dev/null +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationBasedOnParentClassMethodRector/Fixture/skip_destruct.php.inc @@ -0,0 +1,12 @@ +getMethods() as $classMethod) { - if ($this->isName($classMethod, MethodName::CONSTRUCT)) { + if ($this->isNames($classMethod, [MethodName::CONSTRUCT, MethodName::DESCTRUCT])) { continue; }