8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f92b9a commit 17263caCopy full SHA for 17263ca
src/Symfony/Component/Console/Helper/Table.php
@@ -674,16 +674,12 @@ private function fillCells($row)
674
{
675
$newRow = [];
676
677
- $newColumn = null;
678
foreach ($row as $column => $cell) {
679
- if (null === $newColumn) {
680
- $newColumn = $column;
681
- }
682
- $newRow[$newColumn++] = $cell;
+ $newRow[] = $cell;
683
if ($cell instanceof TableCell && $cell->getColspan() > 1) {
684
foreach (range($column + 1, $column + $cell->getColspan() - 1) as $position) {
685
// insert empty value at column position
686
- $newRow[$newColumn++] = '';
+ $newRow[] = '';
687
}
688
689
0 commit comments