File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 61
61
"php" : " ^5.3.3 || ^7.0" ,
62
62
"ext-xml" : " *" ,
63
63
"zendframework/zend-escaper" : " ^2.2" ,
64
- "zendframework/zend-stdlib" : " ^2.2 || ^3.0" ,
65
64
"phpoffice/common" : " ^0.2"
66
65
},
67
66
"require-dev" : {
Original file line number Diff line number Diff line change 17
17
18
18
namespace PhpOffice \PhpWord ;
19
19
20
+ use PhpOffice \Common \Text ;
20
21
use PhpOffice \PhpWord \Escaper \RegExp ;
21
22
use PhpOffice \PhpWord \Escaper \Xml ;
22
23
use PhpOffice \PhpWord \Exception \CopyFileException ;
23
24
use PhpOffice \PhpWord \Exception \CreateTemporaryFileException ;
24
25
use PhpOffice \PhpWord \Exception \Exception ;
25
26
use PhpOffice \PhpWord \Shared \ZipArchive ;
26
- use Zend \Stdlib \StringUtils ;
27
27
28
28
class TemplateProcessor
29
29
{
@@ -192,7 +192,7 @@ protected static function ensureMacroCompleted($macro)
192
192
*/
193
193
protected static function ensureUtf8Encoded ($ subject )
194
194
{
195
- if (!StringUtils:: isValidUtf8 ($ subject )) {
195
+ if (!Text:: isUTF8 ($ subject )) {
196
196
$ subject = utf8_encode ($ subject );
197
197
}
198
198
You can’t perform that action at this time.
0 commit comments