From 52b448f7768e033fee349f4d83e78d9cbe47b4c2 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Fri, 29 Nov 2024 22:52:53 +0100 Subject: [PATCH] Raise coverage --- src/LocalizedStringElementTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LocalizedStringElementTrait.php b/src/LocalizedStringElementTrait.php index 6fa8613..e54877d 100644 --- a/src/LocalizedStringElementTrait.php +++ b/src/LocalizedStringElementTrait.php @@ -93,7 +93,7 @@ public static function fromXML(DOMElement $xml): static final public function toXML(DOMElement $parent = null): DOMElement { $e = $this->instantiateParentElement($parent); - $e->setAttributeNS(C::NS_XML, 'xml:lang', $this->language); + $e->setAttributeNS(C::NS_XML, 'xml:lang', $this->getLanguage()); $e->textContent = $this->getContent(); return $e;