Skip to content

Commit

Permalink
Break inheritance chain to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 28, 2025
1 parent f74923e commit 97bc62f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SAML11/XML/samlp/AbstractSubjectQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public static function fromXML(DOMElement $xml): static
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = parent::toXML($parent);
// $e = $this->instantiateParentElement($parent);

if (!$e->lookupPrefix($this->getXsiType()->getNamespaceURI()->getValue())) {
$e->setAttributeNS(
Expand All @@ -115,7 +116,7 @@ public function toXML(?DOMElement $parent = null): DOMElement
$type = new XMLAttribute(C::NS_XSI, 'xsi', 'type', $this->getXsiType());
$type->toXML($e);

$this->getSubject()->toXML($e);
// $this->getSubject()->toXML($e);

return $e;
}
Expand Down

0 comments on commit 97bc62f

Please sign in to comment.