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 6769df2 commit de2828bCopy full SHA for de2828b
src/PhpWord/Writer/RTF/Element/Text.php
@@ -51,7 +51,7 @@ public function write()
51
$content .= '\strike ';
52
}
53
54
- if ($this->fontStyle !== null) {
+ if ($this->fontStyle !== null && method_exists($this->fontStyle, 'getFgColor')) {
55
$fgColor = $this->fontStyle->getFgColor();
56
if ($fgColor !== null) {
57
$fgColorIndex = array_search($fgColor, $this->parentWriter->getColorTable());
0 commit comments