Skip to content

Commit 373039c

Browse files
committed
Merge branch 'support_for_xe_and_index_field' into develop
2 parents f0fa91f + 64f06e1 commit 373039c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/PhpWord/Writer/Word2007/Element/Field.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
namespace PhpOffice\PhpWord\Writer\Word2007\Element;
1919

20-
use PhpOffice\PhpWord\Element\TextRun;
21-
2220
/**
2321
* Field element writer
2422
*
@@ -66,7 +64,7 @@ public function write()
6664
$xmlWriter->endElement(); // w:r
6765

6866
if ($element->getText() != null) {
69-
if ($element->getText() instanceof TextRun) {
67+
if ($element->getText() instanceof PhpOffice\PhpWord\Element\TextRun) {
7068

7169
$containerWriter = new Container($xmlWriter, $element->getText(), true);
7270
$containerWriter->write();

0 commit comments

Comments
 (0)