From a55485e37fc251a18b5cd64e3f93fc4b52b9af88 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Thu, 4 Jun 2026 20:56:47 +0200 Subject: [PATCH] Migrate DOM-classes to PHP 8.4's new DOM-API --- src/SPID/XML/saml/Issuer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);