Skip to content

Commit 3c66ce9

Browse files
authored
Merge pull request #1988 from Ciki/patch-1
Fix deprecated warning for non-hexadecimal number
2 parents ca1272b + 13384f6 commit 3c66ce9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PhpWord/Writer/HTML/Element/Table.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function write()
5252
for ($j = 0; $j < $rowCellCount; $j++) {
5353
$cellStyle = $rowCells[$j]->getStyle();
5454
$cellBgColor = $cellStyle->getBgColor();
55+
$cellBgColor === 'auto' && $cellBgColor = null; // auto cannot be parsed to hexadecimal number
5556
$cellFgColor = null;
5657
if ($cellBgColor) {
5758
$red = hexdec(substr($cellBgColor, 0, 2));

0 commit comments

Comments
 (0)