File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111
1212$ section ->addText (
1313 'This is some text highlighted using fgColor (limited to 15 colors) ' ,
14- ['fgColor ' => PhpOffice \PhpWord \Style \Font:: FGCOLOR_YELLOW ]
14+ ['fgColor ' => PhpOffice \PhpWord \SimpleType \Color:: YELLOW ]
1515);
1616$ section ->addText ('This one uses bgColor and is using hex value (0xfbbb10) ' , ['bgColor ' => 'fbbb10 ' ]);
1717$ section ->addText ('Compatible with font colors ' , ['color ' => '0000ff ' , 'bgColor ' => 'fbbb10 ' ]);
Original file line number Diff line number Diff line change 2020
2121use PhpOffice \PhpWord \PhpWord ;
2222use PhpOffice \PhpWord \Settings ;
23+ use PhpOffice \PhpWord \SimpleType \Color ;
2324use PhpOffice \PhpWord \SimpleType \Jc ;
2425use PhpOffice \PhpWord \Style \Font ;
2526use PhpOffice \PhpWord \Style \Language ;
@@ -115,7 +116,7 @@ public function testSetStyleValueNormal(): void
115116 'doubleStrikethrough ' => false ,
116117 'smallCaps ' => true ,
117118 'allCaps ' => false ,
118- 'fgColor ' => Font:: FGCOLOR_YELLOW ,
119+ 'fgColor ' => Color:: YELLOW ,
119120 'bgColor ' => 'FFFF00 ' ,
120121 'lineHeight ' => 2 ,
121122 'scale ' => 150 ,
You can’t perform that action at this time.
0 commit comments