Skip to content

Commit 575c553

Browse files
committed
replace self with static
1 parent 2a088fb commit 575c553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/TemplateProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ public function setImageValue($search, $replace, $limit = self::MAXIMUM_REPLACEM
521521
$xmlImage = str_replace(array('{RID}', '{WIDTH}', '{HEIGHT}'), array($rid, $preparedImageAttrs['width'], $preparedImageAttrs['height']), $imgTpl);
522522

523523
// replace variable
524-
$varNameWithArgsFixed = self::ensureMacroCompleted($varNameWithArgs);
524+
$varNameWithArgsFixed = static::ensureMacroCompleted($varNameWithArgs);
525525
$matches = array();
526526
if (preg_match('/(<[^<]+>)([^<]*)(' . preg_quote($varNameWithArgsFixed) . ')([^>]*)(<[^>]+>)/Uu', $partContent, $matches)) {
527527
$wholeTag = $matches[0];

0 commit comments

Comments
 (0)