Skip to content

Commit f7e29ec

Browse files
Merge branch '4.4' into 5.4
* 4.4: [Serializer] Fix AbstractObjectNormalizer not considering pseudo type false [Serializer] Fix JsonSerializableNormalizer ignores circular reference handler in $context [Serializer][PropertyInfo] Fix support for "false" built-in type on PHP 8.2 Fix CS in Console Table after #45565 fix italian translation for validators
2 parents cf62f08 + 7216004 commit f7e29ec

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Helper/Table.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -800,18 +800,18 @@ private function calculateColumnsWidth(iterable $groups)
800800
continue;
801801
}
802802

803-
foreach ($row as $i => $cell) {
804-
if ($cell instanceof TableCell) {
805-
$textContent = Helper::removeDecoration($this->output->getFormatter(), $cell);
806-
$textLength = Helper::width($textContent);
807-
if ($textLength > 0) {
808-
$contentColumns = str_split($textContent, ceil($textLength / $cell->getColspan()));
809-
foreach ($contentColumns as $position => $content) {
810-
$row[$i + $position] = $content;
803+
foreach ($row as $i => $cell) {
804+
if ($cell instanceof TableCell) {
805+
$textContent = Helper::removeDecoration($this->output->getFormatter(), $cell);
806+
$textLength = Helper::width($textContent);
807+
if ($textLength > 0) {
808+
$contentColumns = str_split($textContent, ceil($textLength / $cell->getColspan()));
809+
foreach ($contentColumns as $position => $content) {
810+
$row[$i + $position] = $content;
811+
}
811812
}
812813
}
813814
}
814-
}
815815

816816
$lengths[] = $this->getCellWidth($row, $column);
817817
}

0 commit comments

Comments
 (0)