keep comments removed with related-stmt

This commit is contained in:
TomasVotruba 2020-05-06 12:58:48 +02:00
parent 65a25fc57e
commit b11ca167b0
3 changed files with 3 additions and 31 deletions

View File

@ -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);
}
}

View File

@ -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 */
?>

View File

@ -28,7 +28,6 @@ final class RemoveDeadStmtRectorTest extends AbstractRectorTestCase
*/
public function testKeepComments(string $file): void
{
$this->markTestSkipped('Temporary skip removed docs');
$this->doTestFile($file);
}