8000 Revert changes to Table->fillCells() · symfony/symfony@17263ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 17263ca

Browse files
author
Jelle Raaijmakers
committed
Revert changes to Table->fillCells()
These changes were introduced in #37731 but no longer contributed to the actual fix, which was to perform a ->copyRow().
1 parent 0f92b9a commit 17263ca

File tree

1 file changed

+2
-6
lines changed
  • src/Symfony/Component/Console/Helper

1 file changed

+2
-6
lines changed

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -674,16 +674,12 @@ private function fillCells($row)
674674
{
675675
$newRow = [];
676676

677-
$newColumn = null;
678677
foreach ($row as $column => $cell) {
679-
if (null === $newColumn) {
680-
$newColumn = $column;
681-
}
682-
$newRow[$newColumn++] = $cell;
678+
$newRow[] = $cell;
683679
if ($cell instanceof TableCell && $cell->getColspan() > 1) {
684680
foreach (range($column + 1, $column + $cell->getColspan() - 1) as $position) {
685681
// insert empty value at column position
686-
$newRow[$newColumn++] = '';
682+
$newRow[] = '';
687683
}
688684
}
689685
}

0 commit comments

Comments
 (0)
0