Merge pull request #1988 from Ciki/patch-1
Fix deprecated warning for non-hexadecimal number
This commit is contained in:
commit
3c66ce9a73
|
|
@ -52,6 +52,7 @@ class Table extends AbstractElement
|
|||
for ($j = 0; $j < $rowCellCount; $j++) {
|
||||
$cellStyle = $rowCells[$j]->getStyle();
|
||||
$cellBgColor = $cellStyle->getBgColor();
|
||||
$cellBgColor === 'auto' && $cellBgColor = null; // auto cannot be parsed to hexadecimal number
|
||||
$cellFgColor = null;
|
||||
if ($cellBgColor) {
|
||||
$red = hexdec(substr($cellBgColor, 0, 2));
|
||||
|
|
|
|||
Loading…
Reference in New Issue