Skip to content

Commit 11d816f

Browse files
committed
php 5.3 compatibility
1 parent 64f06e1 commit 11d816f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/PhpWord/Writer/Word2007/ElementTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ public function testFieldElement()
198198
$phpWord = new PhpWord();
199199
$section = $phpWord->addSection();
200200

201-
$section->addField('INDEX', [], ['\\c "3"']);
202-
$section->addField('XE', [], ['Bold', 'Italic'], 'Index Entry');
203-
$section->addField('DATE', ['dateformat' => 'd-M-yyyy'], ['PreserveFormat', 'LastUsedFormat']);
204-
$section->addField('DATE', [], ['LunarCalendar']);
205-
$section->addField('DATE', [], ['SakaEraCalendar']);
206-
$section->addField('NUMPAGES', ['format' => 'roman', 'numformat' => '0,00'], ['SakaEraCalendar']);
201+
$section->addField('INDEX', array(), array('\\c "3"'));
202+
$section->addField('XE', array(), array('Bold', 'Italic'), 'Index Entry');
203+
$section->addField('DATE', array('dateformat' => 'd-M-yyyy'), array('PreserveFormat', 'LastUsedFormat'));
204+
$section->addField('DATE', array(), array('LunarCalendar'));
205+
$section->addField('DATE', array(), array('SakaEraCalendar'));
206+
$section->addField('NUMPAGES', array('format' => 'roman', 'numformat' => '0,00'), array('SakaEraCalendar'));
207207
$doc = TestHelperDOCX::getDocument($phpWord);
208208

209209
$element = '/w:document/w:body/w:p/w:r/w:instrText';
@@ -219,7 +219,7 @@ public function testFieldElementWithComplexText()
219219
$text = new TextRun();
220220
$text->addText('test string', array('bold' => true));
221221

222-
$section->addField('XE', [], ['Bold', 'Italic'], $text);
222+
$section->addField('XE', array(), array('Bold', 'Italic'), $text);
223223
$doc = TestHelperDOCX::getDocument($phpWord);
224224

225225
$element = '/w:document/w:body/w:p/w:r[2]/w:instrText';

0 commit comments

Comments
 (0)