We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d697c commit ccf2912Copy full SHA for ccf2912
src/PhpWord/Writer/ODText/Style/Table.php
@@ -47,7 +47,7 @@ public function write()
47
$xmlWriter->endElement(); // style:style
48
49
$cellWidths = $style->getColumnWidths();
50
- $countCellWidths = count($cellWidths);
+ $countCellWidths = $cellWidths === null ? 0 : count($cellWidths);
51
52
for ($i = 0; $i < $countCellWidths; $i++) {
53
$width = $cellWidths[$i];
0 commit comments