ensure user attributes are truncated (#1580)

This commit is contained in:
Kevin Papst
2020-03-21 00:21:06 +01:00
committed by GitHub
parent fb2ce0d30a
commit c89750fe94
9 changed files with 133 additions and 166 deletions

View File

@@ -58,7 +58,7 @@ class XlsxRenderer extends AbstractSpreadsheetRenderer
$col = $sheet->getColumnDimension($column);
// If no other width is specified (which defaults to -1)
if ($col->getWidth() === -1) {
if ((int) $col->getWidth() === -1) {
$col->setAutoSize(true);
}
}