Skip to content

Commit 814b3d1

Browse files
committed
Stop using DOMDocumentFactory::create
1 parent bb99d4d commit 814b3d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/SAML2/XML/md/ContactPerson.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
namespace SimpleSAML\SAML2\XML\md;
66

7+
use DOMDocument;
78
use DOMElement;
89
use Exception;
910
use SimpleSAML\Assert\Assert;
1011
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
1112
use SimpleSAML\SAML2\Utils\XPath;
1213
use SimpleSAML\SAML2\XML\ExtendableElementTrait;
13-
use SimpleSAML\XML\DOMDocumentFactory;
1414
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1515
use SimpleSAML\XML\Exception\TooManyElementsException;
1616
use SimpleSAML\XML\ExtendableAttributesTrait;
@@ -266,7 +266,7 @@ public static function fromArray(array $data): static
266266
$name = array_key_first($attribute);
267267
$value = $attribute[$name];
268268

269-
$doc = DOMDocumentFactory::create();
269+
$doc = new DOMDocument();
270270
$elt = $doc->createElement("placeholder");
271271
$elt->setAttributeNS($ns, $name, $value);
272272

0 commit comments

Comments
 (0)