Skip to content

Commit 7b3b723

Browse files
authored
Merge pull request #1430 from nicoder/patch-4
allow to override TemplateProcessor#ensureUtf8Encoded
2 parents c177c55 + 198165c commit 7b3b723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpWord/TemplateProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ public function setValue($search, $replace, $limit = self::MAXIMUM_REPLACEMENTS_
217217

218218
if (is_array($replace)) {
219219
foreach ($replace as &$item) {
220-
$item = self::ensureUtf8Encoded($item);
220+
$item = static::ensureUtf8Encoded($item);
221221
}
222222
} else {
223-
$replace = self::ensureUtf8Encoded($replace);
223+
$replace = static::ensureUtf8Encoded($replace);
224224
}
225225

226226
if (Settings::isOutputEscapingEnabled()) {

0 commit comments

Comments
 (0)