Skip to content

Commit 970c6a2

Browse files
committed
Bug fixes for last commit
1 parent 410ce4b commit 970c6a2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/PhpWord/Writer/ODText/Part/Styles.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ private function writePageLayout(XMLWriter $xmlWriter)
175175
*/
176176
private function writeMaster(XMLWriter $xmlWriter)
177177
{
178-
$xmlWriter = $this->getXmlWriter();
179-
180178
$xmlWriter->startElement('office:master-styles');
181179

182180
$xmlWriter->startElement('style:master-page');

src/PhpWord/Writer/Word2007/Part/Styles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function write()
154154
* Write default font and other default styles
155155
*
156156
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
157-
* @param \PhpOffice\PhpWord\Style\AbstractStyle $styles
157+
* @param \PhpOffice\PhpWord\Style\AbstractStyle[] $styles
158158
*/
159159
private function writeDefaultStyles(XMLWriter $xmlWriter, $styles)
160160
{

tests/PhpWord/Tests/Writer/ODText/Part/ContentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function testWriteContent()
8484

8585
$doc = TestHelperDOCX::getDocument($phpWord, 'ODText');
8686

87-
$element = "/office:document-content/office:body/office:text/text:p";
87+
$element = "/office:document-content/office:body/office:text/text:section/text:p";
8888
$this->assertEquals($expected, $doc->getElement($element, 'content.xml')->nodeValue);
8989
}
9090

0 commit comments

Comments
 (0)