From 24e679dcc1e665cb461714cb72cf98479ebce9b1 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 25 Oct 2026 23:22:09 +0700 Subject: [PATCH] [perf] Remove unused array_values() on pArray() method on BetterStandardPrinter --- src/PhpParser/Printer/BetterStandardPrinter.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/PhpParser/Printer/BetterStandardPrinter.php b/src/PhpParser/Printer/BetterStandardPrinter.php index 5c729f74990..acfab301e97 100644 --- a/src/PhpParser/Printer/BetterStandardPrinter.php +++ b/src/PhpParser/Printer/BetterStandardPrinter.php @@ -230,9 +230,6 @@ protected function pArray( string $subNodeName, ?int $fixup ): ?string { - // reindex positions for printer - $nodes = array_values($nodes); - $content = parent::pArray($nodes, $origNodes, $pos, $indentAdjustment, $parentNodeClass, $subNodeName, $fixup); if ($content === null) { return $content;