Skip to content

Commit 024fdf9

Browse files
author
Franck
committed
call static instead of self on protected method
1 parent f92ec7e commit 024fdf9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PhpWord/Shared/Html.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function addHtml($element, $html, $fullHTML = false, $preserveWhit
6161
* @todo parse $stylesheet for default styles. Should result in an array based on id, class and element,
6262
* which could be applied when such an element occurs in the parseNode function.
6363
*/
64-
self::$options = $options;
64+
static::$options = $options;
6565

6666
// Preprocess: remove all line ends, decode HTML entity,
6767
// fix ampersand and angle brackets and add body tag for HTML fragments
@@ -82,10 +82,10 @@ public static function addHtml($element, $html, $fullHTML = false, $preserveWhit
8282
$dom = new DOMDocument();
8383
$dom->preserveWhiteSpace = $preserveWhiteSpace;
8484
$dom->loadXML($html);
85-
self::$xpath = new DOMXPath($dom);
85+
static::$xpath = new DOMXPath($dom);
8686
$node = $dom->getElementsByTagName('body');
8787

88-
self::parseNode($node->item(0), $element);
88+
static::parseNode($node->item(0), $element);
8989
if (\PHP_VERSION_ID < 80000) {
9090
libxml_disable_entity_loader($orignalLibEntityLoader);
9191
}

0 commit comments

Comments
 (0)