8000 Fix broken table generation · fervo/symfony@063ca2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 063ca2d

Browse files
committed
Fix broken table generation
In 2c9922e the code was optimised but the order of method calls was incorrect, leading to several errors in the test suite. Not all the tests related to table generation got fixed, but at least the component is not broken anymore. Fixes symfony#26081
1 parent 89d1b65 commit 063ca2d

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Console/Helper

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ private function getRowColumns(array $row): array
565565
/**
566566
* Calculates columns widths.
567567
*/
568-
private function calculateColumnsWidth(array $rows)
568+
private function calculateColumnsWidth(iterable $rows)
569569
{
570570
for ($column = 0; $column < $this->numberOfColumns; ++$column) {
571571
$lengths = array();

0 commit comments

Comments
 (0)
0