mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-20 23:18:20 +01:00
keep comments removed with related-stmt
This commit is contained in:
parent
65a25fc57e
commit
b11ca167b0
@ -55,12 +55,8 @@ final class ClassMethodReturnVendorLockResolver extends AbstractNodeVendorLockRe
|
||||
// if not, look for it's parent parent
|
||||
}
|
||||
|
||||
if (method_exists($parentClassName, $methodName)) {
|
||||
// validate type is conflicting
|
||||
// parent class method in external scope → it's not ok
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
// validate type is conflicting
|
||||
// parent class method in external scope → it's not ok
|
||||
return method_exists($parentClassName, $methodName);
|
||||
}
|
||||
}
|
||||
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
// keep this for Harry Potter
|
||||
$keep;
|
||||
|
||||
/** keep this for Harry Potter */
|
||||
$keep;
|
||||
|
||||
/* keep this for Harry Potter */
|
||||
$keep;
|
||||
?>
|
||||
-----
|
||||
<?php
|
||||
|
||||
// keep this for Harry Potter
|
||||
|
||||
|
||||
/** keep this for Harry Potter */
|
||||
|
||||
|
||||
/* keep this for Harry Potter */
|
||||
|
||||
?>
|
@ -28,7 +28,6 @@ final class RemoveDeadStmtRectorTest extends AbstractRectorTestCase
|
||||
*/
|
||||
public function testKeepComments(string $file): void
|
||||
{
|
||||
$this->markTestSkipped('Temporary skip removed docs');
|
||||
$this->doTestFile($file);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user