fix namespace
This commit is contained in:
parent
11d816f94d
commit
2b4b200e42
|
|
@ -64,7 +64,7 @@ class Field extends Text
|
|||
$xmlWriter->endElement(); // w:r
|
||||
|
||||
if ($element->getText() != null) {
|
||||
if ($element->getText() instanceof PhpOffice\PhpWord\Element\TextRun) {
|
||||
if ($element->getText() instanceof \PhpOffice\PhpWord\Element\TextRun) {
|
||||
|
||||
$containerWriter = new Container($xmlWriter, $element->getText(), true);
|
||||
$containerWriter->write();
|
||||
|
|
|
|||
Loading…
Reference in New Issue