We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40176e2 commit 691c8a3Copy full SHA for 691c8a3
src/LocalizedStringElementTrait.php
@@ -93,7 +93,7 @@ public static function fromXML(DOMElement $xml): static
93
final public function toXML(DOMElement $parent = null): DOMElement
94
{
95
$e = $this->instantiateParentElement($parent);
96
- $e->setAttributeNS(C::NS_XML, 'xml:lang', $this->language);
+ $e->setAttributeNS(C::NS_XML, 'xml:lang', $this->getLanguage());
97
$e->textContent = $this->getContent();
98
99
return $e;
0 commit comments