Skip to content

Commit 75fd6b2

Browse files
authored
[perf] Remove unused array_values() on pArray() method on BetterStandardPrinter (#8821)
1 parent 38ff4f2 commit 75fd6b2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎src/PhpParser/Printer/BetterStandardPrinter.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ protected function pArray(
230230
string $subNodeName,
231231
?int $fixup
232232
): ?string {
233-
// reindex positions for printer
234-
$nodes = array_values($nodes);
235-
236233
$content = parent::pArray($nodes, $origNodes, $pos, $indentAdjustment, $parentNodeClass, $subNodeName, $fixup);
237234
if ($content === null) {
238235
return $content;

0 commit comments

Comments
 (0)