diff --git a/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php b/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php index 9c2a4c25086..b9c2cf57d27 100644 --- a/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php +++ b/packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php @@ -79,8 +79,6 @@ public function addPhpDocTagNode(PhpDocChildNode $phpDocChildNode): void $this->phpDocNode->children[] = $phpDocChildNode; // to give node more space $this->makeMultiLined(); - - $this->markAsChanged(); } public function getPhpDocNode(): PhpDocNode @@ -373,6 +371,7 @@ public function getTemplateTagValueNodes(): array } /** + * @deprecated Change doc block and print directly in the node instead * @internal * Should be handled by attributes of phpdoc node - if stard_and_end is missing in one of nodes, it has been changed * Similar to missing original node in php-aprser diff --git a/src/PhpParser/Printer/BetterStandardPrinter.php b/src/PhpParser/Printer/BetterStandardPrinter.php index 4ff725714b3..ed725b13626 100644 --- a/src/PhpParser/Printer/BetterStandardPrinter.php +++ b/src/PhpParser/Printer/BetterStandardPrinter.php @@ -360,16 +360,6 @@ protected function pScalar_String(String_ $string): string return parent::pScalar_String($string); } - /** - * @param Node[] $nodes - */ - protected function pStmts(array $nodes, bool $indent = true): string - { - $this->moveCommentsFromAttributeObjectToCommentsAttribute($nodes); - - return parent::pStmts($nodes, $indent); - } - /** * "...$params) : ReturnType" * ↓