mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 23:52:23 +00:00
check for dead-code info
This commit is contained in:
parent
7ba752378c
commit
7fd5234a10
|
@ -84,8 +84,11 @@ final class DoctrineEntityManipulator
|
|||
return false;
|
||||
}
|
||||
|
||||
/** @var PhpDocInfo $phpDocInfo */
|
||||
/** @var PhpDocInfo|null $phpDocInfo */
|
||||
$phpDocInfo = $class->getAttribute(AttributeKey::PHP_DOC_INFO);
|
||||
if ($phpDocInfo === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// is parent entity
|
||||
if ($phpDocInfo->hasByType(InheritanceTypeTagValueNode::class)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user