From 18a9d691aa416b187a736f49368208fe71a460ec Mon Sep 17 00:00:00 2001 From: Frederik Bosch Date: Fri, 11 Aug 2023 12:44:23 +0200 Subject: [PATCH] fix missing typehint, --- src/Xsl/Node/AttributeExpandText.php | 2 ++ 1 file changed, 2 insertions(+) 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(