-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Hello,
I want to remove node (Trait1 only in this example) if they are like this
class MyClass {
use Trait1, Trait2;
}
My node visitor in leaveNode
return an array of Node\Name
.
public function leaveNode(Node $node)
{
if ($node instanceof Node\Stmt\TraitUse) {
$node->traits; // list of trait
}
}
With many tries, I only archived to have (for example):
use , Trait2;
or even worst use ;
Thank for you help
Metadata
Metadata
Assignees
Labels
No labels