8000 minor #26107 [Console] Fix broken table generation (lcobucci) · fervo/symfony@0733b17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0733b17

Browse files
committed
minor symfony#26107 [Console] Fix broken table generation (lcobucci)
This PR was merged into the 4.1-dev branch. Discussion ---------- [Console] Fix broken table generation | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes (in an optimisation which is only in `master`) | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes (partially, at least they don't break badly anymore) | Fixed tickets | symfony#26081 | License | MIT In 2c9922e the code was optimised but the order of method calls was incorrect, leading to several errors in the test suite. Commits ------- 063ca2d Fix broken table generation
2 parents 89d1b65 + 063ca2d commit 0733b17

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