Fix broken table generation
In 2c9922e8af
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 https://github.com/symfony/symfony/issues/26081
This commit is contained in:
parent
89d1b65037
commit
063ca2d708
@ -565,7 +565,7 @@ class Table
|
|||||||
/**
|
/**
|
||||||
* Calculates columns widths.
|
* Calculates columns widths.
|
||||||
*/
|
*/
|
||||||
private function calculateColumnsWidth(array $rows)
|
private function calculateColumnsWidth(iterable $rows)
|
||||||
{
|
{
|
||||||
for ($column = 0; $column < $this->numberOfColumns; ++$column) {
|
for ($column = 0; $column < $this->numberOfColumns; ++$column) {
|
||||||
$lengths = array();
|
$lengths = array();
|
||||||
|
Reference in New Issue
Block a user