Skip to content

Commit 0b54134

Browse files
committed
Fix failing tests
1 parent 27a4e0d commit 0b54134

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,10 @@ public function render()
394394
$rowGroups = $this->buildTableRows($rows);
395395
$this->calculateColumnsWidth($rowGroups);
396396

397-
$this->dropColumn($rowGroups);
398-
$this->calculateColumnsWidth($rowGroups);
397+
if ($this->maxWidth && $this->optionalColumns) {
398+
$this->dropColumn($rowGroups);
399+
$this->calculateColumnsWidth($rowGroups);
400+
}
399401

400402
$isHeader = !$horizontal;
401403
$isFirstRow = $horizontal;

0 commit comments

Comments
 (0)