mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 00:10:51 +00:00
[Core] Refactor CreatedByRuleDecorator to only set CREATED_BY_RULE on target Node when class is equals (#2573)
This commit is contained in:
parent
78d110af4c
commit
cf8cbcd4cb
|
@ -19,7 +19,9 @@ final class CreatedByRuleDecorator
|
|||
}
|
||||
|
||||
foreach ($node as $singleNode) {
|
||||
$this->createByRule($singleNode, $rectorClass);
|
||||
if ($singleNode::class === $originalNode::class) {
|
||||
$this->createByRule($singleNode, $rectorClass);
|
||||
}
|
||||
}
|
||||
|
||||
$this->createByRule($originalNode, $rectorClass);
|
||||
|
|
Loading…
Reference in New Issue
Block a user