@@ -198,12 +198,12 @@ public function testFieldElement()
198
198
$ phpWord = new PhpWord ();
199
199
$ section = $ phpWord ->addSection ();
200
200
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 ' ) );
207
207
$ doc = TestHelperDOCX::getDocument ($ phpWord );
208
208
209
209
$ element = '/w:document/w:body/w:p/w:r/w:instrText ' ;
@@ -219,7 +219,7 @@ public function testFieldElementWithComplexText()
219
219
$ text = new TextRun ();
220
220
$ text ->addText ('test string ' , array ('bold ' => true ));
221
221
222
- $ section ->addField ('XE ' , [], [ 'Bold ' , 'Italic ' ] , $ text );
222
+ $ section ->addField ('XE ' , array (), array ( 'Bold ' , 'Italic ' ) , $ text );
223
223
$ doc = TestHelperDOCX::getDocument ($ phpWord );
224
224
225
225
$ element = '/w:document/w:body/w:p/w:r[2]/w:instrText ' ;
0 commit comments