Skip to content

Commit 000e36a

Browse files
Fixes #927
1 parent c710690 commit 000e36a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function getSettings()
106106
'w:themeFontLang' => array('@attributes' => array('w:val' => 'en-US')),
107107
'w:decimalSymbol' => array('@attributes' => array('w:val' => '.')),
108108
'w:listSeparator' => array('@attributes' => array('w:val' => ';')),
109-
'w:compat' => '',
109+
'w:compat' => array(),
110110
'm:mathPr' => array(
111111
'm:mathFont' => array('@attributes' => array('m:val' => 'Cambria Math')),
112112
'm:brkBin' => array('@attributes' => array('m:val' => 'before')),

tests/PhpWord/Writer/Word2007/Part/SettingsTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ public function testCompatibility()
6464

6565
$path = '/w:settings/w:compat/w:compatSetting';
6666
$this->assertTrue($doc->elementExists($path, $file));
67+
$this->assertEquals($phpWord->getCompatibility()->getOoxmlVersion(), 15);
6768
}
6869
}

0 commit comments

Comments
 (0)