Skip to content

Commit

Permalink
[ProcessAnalyzer] Remove parent attribute on RectifiedAnalyzer (#4010)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed May 29, 2023
1 parent 1f594c0 commit 7891fda
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/ProcessAnalyzer/RectifiedAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,7 @@ private function isJustReprintedOverlappedTokenStart(Node $node, ?Node $original
return false;
}

$parentNode = $node->getAttribute(AttributeKey::PARENT_NODE);

if (! $parentNode instanceof Node) {
return false;
}

$parentOriginalNode = $parentNode->getAttribute(AttributeKey::ORIGINAL_NODE);
if ($parentOriginalNode instanceof Node) {
if ($node->hasAttribute(AttributeKey::ORIGINAL_NODE)) {
return false;
}

Expand Down

0 comments on commit 7891fda

Please sign in to comment.