File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \SAML2 ;
66
7- use DOMElement ;
7+ use Dom ;
88use SimpleSAML \SAML2 \Assert \Assert ;
99use SimpleSAML \SAML2 \Type \SAMLStringValue ;
1010use SimpleSAML \SAML2 \XML \saml \AbstractBaseID ;
@@ -67,7 +67,7 @@ public function getAudience(): array
6767 /**
6868 * @inheritDoc
6969 */
70- public static function fromXML (DOMElement $ xml ): static
70+ public static function fromXML (Dom \ Element $ xml ): static
7171 {
7272 Assert::same ($ xml ->localName , 'BaseID ' , InvalidDOMElementException::class);
7373 Assert::notNull ($ xml ->namespaceURI , InvalidDOMElementException::class);
@@ -92,7 +92,7 @@ public static function fromXML(DOMElement $xml): static
9292 /**
9393 * Convert this BaseID to XML.
9494 */
95- public function toXML (?DOMElement $ parent = null ): DOMElement
95+ public function toXML (?Dom \ Element $ parent = null ): Dom \ Element
9696 {
9797 $ e = parent ::toXML ($ parent );
9898
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \SAML2 ;
66
7- use DOMElement ;
7+ use Dom ;
88use SimpleSAML \SAML2 \Assert \Assert ;
99use SimpleSAML \SAML2 \XML \saml \AbstractCondition ;
1010use SimpleSAML \SAML2 \XML \saml \Audience ;
@@ -62,7 +62,7 @@ public function getAudience(): array
6262 * @throws \SimpleSAML\XMLSchema\Exception\InvalidDOMElementException
6363 * if the qualified name of the supplied element is wrong
6464 */
65- public static function fromXML (DOMElement $ xml ): static
65+ public static function fromXML (Dom \ Element $ xml ): static
6666 {
6767 Assert::same ($ xml ->localName , 'Condition ' , InvalidDOMElementException::class);
6868 Assert::notNull ($ xml ->namespaceURI , InvalidDOMElementException::class);
@@ -85,7 +85,7 @@ public static function fromXML(DOMElement $xml): static
8585 /**
8686 * Convert this Condition to XML.
8787 */
88- public function toXML (?DOMElement $ parent = null ): DOMElement
88+ public function toXML (?Dom \ Element $ parent = null ): Dom \ Element
8989 {
9090 $ e = parent ::toXML ($ parent );
9191
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \SAML2 ;
66
7- use DOMElement ;
7+ use Dom ;
88use SimpleSAML \SAML2 \Assert \Assert ;
99use SimpleSAML \SAML2 \Type \SAMLAnyURIListValue ;
1010use SimpleSAML \SAML2 \Type \SAMLAnyURIValue ;
@@ -120,7 +120,7 @@ public function getChunk(): array
120120 * @throws \SimpleSAML\XMLSchema\Exception\InvalidDOMElementException
121121 * if the qualified name of the supplied element is wrong
122122 */
123- public static function fromXML (DOMElement $ xml ): static
123+ public static function fromXML (Dom \ Element $ xml ): static
124124 {
125125 Assert::same ($ xml ->localName , 'RoleDescriptor ' , InvalidDOMElementException::class);
126126 Assert::notNull ($ xml ->namespaceURI , InvalidDOMElementException::class);
@@ -169,7 +169,7 @@ public static function fromXML(DOMElement $xml): static
169169 /**
170170 * Convert this RoleDescriptor to XML.
171171 */
172- public function toUnsignedXML (?DOMElement $ parent = null ): DOMElement
172+ public function toUnsignedXML (?Dom \ Element $ parent = null ): Dom \ Element
173173 {
174174 $ e = parent ::toUnsignedXML ($ parent );
175175
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \Test \SAML2 ;
66
7- use DOMElement ;
7+ use Dom ;
88use SimpleSAML \SAML2 \Assert \Assert ;
99use SimpleSAML \SAML2 \XML \saml \AbstractStatement ;
1010use SimpleSAML \SAML2 \XML \saml \Audience ;
@@ -62,7 +62,7 @@ public function getAudience(): array
6262 * @throws \SimpleSAML\XMLSchema\Exception\InvalidDOMElementException
6363 * if the qualified name of the supplied element is wrong
6464 */
65- public static function fromXML (DOMElement $ xml ): static
65+ public static function fromXML (Dom \ Element $ xml ): static
6666 {
6767 Assert::same ($ xml ->localName , 'Statement ' , InvalidDOMElementException::class);
6868 Assert::notNull ($ xml ->namespaceURI , InvalidDOMElementException::class);
@@ -85,7 +85,7 @@ public static function fromXML(DOMElement $xml): static
8585 /**
8686 * Convert this Statement to XML.
8787 */
88- public function toXML (?DOMElement $ parent = null ): DOMElement
88+ public function toXML (?Dom \ Element $ parent = null ): Dom \ Element
8989 {
9090 $ e = parent ::toXML ($ parent );
9191
You can’t perform that action at this time.
0 commit comments