Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 13, 2024
1 parent 04de4c5 commit ccbb2b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExtendableElementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ protected static function getChildElementsFromXML(DOMElement $xml, NS|array $nam
$namespace[$key] = null;
}

foreach ($xml->childElements as $elt) {
foreach ($xml->childNodes as $elt) {
if (!($elt instanceof DOMElement)) {
continue;
} elseif (in_array([$elt->namespaceURI, $ely->localName], $exclusionList, true)) {
} elseif (in_array([$elt->namespaceURI, $elt->localName], $exclusionList, true)) {
continue;
} elseif (!in_array($elt->namespaceURI, $namespace, true)) {
continue;
Expand Down

0 comments on commit ccbb2b6

Please sign in to comment.