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.
2 parents f0fa91f + 64f06e1 commit 373039cCopy full SHA for 373039c
src/PhpWord/Writer/Word2007/Element/Field.php
@@ -17,8 +17,6 @@
17
18
namespace PhpOffice\PhpWord\Writer\Word2007\Element;
19
20
-use PhpOffice\PhpWord\Element\TextRun;
21
-
22
/**
23
* Field element writer
24
*
@@ -66,7 +64,7 @@ public function write()
66
64
$xmlWriter->endElement(); // w:r
67
65
68
if ($element->getText() != null) {
69
- if ($element->getText() instanceof TextRun) {
+ if ($element->getText() instanceof PhpOffice\PhpWord\Element\TextRun) {
70
71
$containerWriter = new Container($xmlWriter, $element->getText(), true);
72
$containerWriter->write();
0 commit comments