Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Update Element.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Apr 21, 2021
1 parent 37d80e0 commit 794af71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 794af71

Please sign in to comment.