Skip to content

Commit 9658c12

Browse files
authored
Merge pull request #2308 from fbclol/develop
Call static instead of self on protected method
2 parents 83f6b02 + 9afd53d commit 9658c12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PhpWord/Shared/Html.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function addHtml($element, $html, $fullHTML = false, $preserveWhit
6666
* @todo parse $stylesheet for default styles. Should result in an array based on id, class and element,
6767
* which could be applied when such an element occurs in the parseNode function.
6868
*/
69-
self::$options = $options;
69+
static::$options = $options;
7070

7171
// Preprocess: remove all line ends, decode HTML entity,
7272
// fix ampersand and angle brackets and add body tag for HTML fragments
@@ -87,10 +87,10 @@ public static function addHtml($element, $html, $fullHTML = false, $preserveWhit
8787
$dom = new DOMDocument();
8888
$dom->preserveWhiteSpace = $preserveWhiteSpace;
8989
$dom->loadXML($html);
90-
self::$xpath = new DOMXPath($dom);
90+
static::$xpath = new DOMXPath($dom);
9191
$node = $dom->getElementsByTagName('body');
9292

93-
self::parseNode($node->item(0), $element);
93+
static::parseNode($node->item(0), $element);
9494
if (\PHP_VERSION_ID < 80000) {
9595
libxml_disable_entity_loader($orignalLibEntityLoader);
9696
}

0 commit comments

Comments
 (0)