Skip to content

Commit

Permalink
[NodeTypeResolver] Clean up wrap in parentheses check ReprintNodeVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Jan 22, 2025
1 parent 223cb91 commit c0b498d
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ public function enterNode(Node $node): ?Node
return $node;
}

if ($node instanceof BooleanNot && $node->expr instanceof BinaryOp && $node->expr->getAttribute(
AttributeKey::ORIGINAL_NODE
) instanceof Node) {
$node->expr->setAttribute(AttributeKey::WRAPPED_IN_PARENTHESES, true);
}

return null;
}
}

0 comments on commit c0b498d

Please sign in to comment.