diff --git a/src/SPID/XML/saml/Issuer.php b/src/SPID/XML/saml/Issuer.php index a542a4c..631bc8d 100644 --- a/src/SPID/XML/saml/Issuer.php +++ b/src/SPID/XML/saml/Issuer.php @@ -4,7 +4,7 @@ namespace SimpleSAML\SPID\XML\saml; -use DOMElement; +use Dom; use SimpleSAML\Assert\Assert; use SimpleSAML\SAML2\Constants as C; use SimpleSAML\SAML2\Type\SAMLAnyURIValue; @@ -36,12 +36,12 @@ public function __construct( /** * Convert XML into an Issuer * - * @param \DOMElement $xml The XML element we should load + * @param \Dom\Element $xml The XML element we should load * * @return static * @throws \SimpleSAML\XMLSchema\Exception\InvalidDOMElementException */ - public static function fromXML(DOMElement $xml): static + public static function fromXML(Dom\Element $xml): static { Assert::same($xml->localName, 'Issuer', InvalidDOMElementException::class); Assert::same($xml->namespaceURI, Issuer::NS, InvalidDOMElementException::class);