fix namespace

This commit is contained in:
antoine 2017-06-17 00:34:02 +02:00
parent 11d816f94d
commit 2b4b200e42
1 changed files with 1 additions and 1 deletions

View File

@ -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();