From da4cd5207fb2638ab7bd407c205da3fff4824e0f Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 23 Jan 2025 03:26:54 +0700 Subject: [PATCH] fix --- src/PhpParser/Printer/BetterStandardPrinter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpParser/Printer/BetterStandardPrinter.php b/src/PhpParser/Printer/BetterStandardPrinter.php index e4041e317a..bf73108bc7 100644 --- a/src/PhpParser/Printer/BetterStandardPrinter.php +++ b/src/PhpParser/Printer/BetterStandardPrinter.php @@ -162,11 +162,11 @@ private function wrapBinaryOp(Node $node): void } if ($node->left instanceof BinaryOp && $node->left->getAttribute(AttributeKey::ORIGINAL_NODE) instanceof Node) { - $node->left->setAttribute(AttributeKey::WRAPPED_IN_PARENTHESES, true); + $node->left->setAttribute(AttributeKey::ORIGINAL_NODE, null); } if ($node->right instanceof BinaryOp && $node->right->getAttribute(AttributeKey::ORIGINAL_NODE) instanceof Node) { - $node->right->setAttribute(AttributeKey::WRAPPED_IN_PARENTHESES, true); + $node->right->setAttribute(AttributeKey::ORIGINAL_NODE, null); } }