diff --git a/src/Xsl/Node/AttributeExpandText.php b/src/Xsl/Node/AttributeExpandText.php index a3dd243..b3979ac 100644 --- a/src/Xsl/Node/AttributeExpandText.php +++ b/src/Xsl/Node/AttributeExpandText.php @@ -54,6 +54,8 @@ public function transform(DOMElement $element): void $childrenQuery = new \DOMXPath($element->ownerDocument); $elements = $childrenQuery->query('.//text()', $element); + + /** @var \DOMText $element */ foreach ($elements as $element) { $overwritesQuery = new \DOMXPath($element->ownerDocument); $nearestExpand = $overwritesQuery->evaluate(