44
55namespace SimpleSAML \SAML11 \XML \saml ;
66
7- use DOMElement ;
7+ use Dom ;
88use SimpleSAML \SAML11 \Assert \Assert ;
99use SimpleSAML \SAML11 \Compat \ContainerSingleton ;
1010use SimpleSAML \SAML11 \Constants as C ;
@@ -50,7 +50,7 @@ abstract class AbstractAssertionType extends AbstractSamlElement implements
5050 /**
5151 * The original signed XML
5252 */
53- protected DOMElement $ xml ;
53+ protected Dom \ Element $ xml ;
5454
5555
5656 /**
@@ -231,15 +231,15 @@ public function getAttributeStatements(): array
231231 /**
232232 * Set the XML element.
233233 */
234- private function setOriginalXML (DOMElement $ xml ): void
234+ private function setOriginalXML (Dom \ Element $ xml ): void
235235 {
236236 $ this ->xml = $ xml ;
237237 }
238238
239239
240240 /**
241241 */
242- protected function getOriginalXML (): DOMElement
242+ protected function getOriginalXML (): Dom \ Element
243243 {
244244 return $ this ->xml ?? $ this ->toUnsignedXML ();
245245 }
@@ -258,7 +258,7 @@ public function getBlacklistedAlgorithms(): ?array
258258 * @throws \SimpleSAML\XML\Exception\InvalidDOMElementException
259259 * if the qualified name of the supplied element is wrong
260260 */
261- public static function fromXML (DOMElement $ xml ): static
261+ public static function fromXML (Dom \ Element $ xml ): static
262262 {
263263 Assert::same ($ xml ->localName , static ::getLocalName (), InvalidDOMElementException::class);
264264 Assert::same ($ xml ->namespaceURI , static ::NS , InvalidDOMElementException::class);
@@ -312,7 +312,7 @@ public static function fromXML(DOMElement $xml): static
312312 * Convert this assertion to an unsigned XML document.
313313 * This method does not sign the resulting XML document.
314314 */
315- protected function toUnsignedXML (?DOMElement $ parent = null ): DOMElement
315+ protected function toUnsignedXML (?Dom \ Element $ parent = null ): Dom \ Element
316316 {
317317 $ e = $ this ->instantiateParentElement ($ parent );
318318
@@ -338,7 +338,7 @@ protected function toUnsignedXML(?DOMElement $parent = null): DOMElement
338338 *
339339 * @throws \Exception
340340 */
341- public function toXML (?DOMElement $ parent = null ): DOMElement
341+ public function toXML (?Dom \ Element $ parent = null ): Dom \ Element
342342 {
343343 if ($ this ->isSigned () === true && $ this ->signer === null ) {
344344 // We already have a signed document and no signer was set to re-sign it
0 commit comments