From 794af71876c4764081b190ac4f4d784fc8c7859f Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 21 Apr 2021 21:00:12 +0200 Subject: [PATCH] Update Element.php --- lib/Element.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Element.php b/lib/Element.php index 8ca668d..0422590 100644 --- a/lib/Element.php +++ b/lib/Element.php @@ -30,7 +30,9 @@ class Element extends \DOMElement implements XPathAware public function appendTextNode($name, $value) { $el = new self($name); - $el->appendChild($this->owner()->createTextNode($value)); + $el->appendChild( + $this->owner()->createTextNode($value) + ); $element = $this->appendChild($el); assert($element instanceof Element);