Skip to content

Commit 233eaa6

Browse files
committed
Fix broken table generation
In 2c9922e8afc8f4b2d6d93b63dbfb865b139eac48 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/symfony#26081
1 parent 3a5d4a8 commit 233eaa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)