We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a99a8 commit 92e2831Copy full SHA for 92e2831
src/XML/ds/Transform.php
@@ -130,13 +130,11 @@ public static function fromXML(DOMElement $xml): static
130
public function toXML(?DOMElement $parent = null): DOMElement
131
{
132
$e = $this->instantiateParentElement($parent);
133
-
134
- $algorithm = $this->getAlgorithm();
135
- $e->setAttribute('Algorithm', $algorithm);
+ $e->setAttribute('Algorithm', $this->getAlgorithm());
136
137
switch ($algorithm) {
138
case C::XPATH10_URI:
139
- $this->getXpath()?->toXML($e);
+ $this->getXPath()?->toXML($e);
140
break;
141
case C::C14N_EXCLUSIVE_WITH_COMMENTS:
142
case C::C14N_EXCLUSIVE_WITHOUT_COMMENTS:
0 commit comments