Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 429bddf

Browse files
committed
fix DOM element namespace URL access
1 parent cafbdb7 commit 429bddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ private function validateAlias(\DOMElement $alias, $file)
672672
}
673673

674674
foreach ($alias->childNodes as $child) {
675-
if (!$child instanceof \DOMElement && self::NS !== $child->namespaceURI) {
675+
if (!$child instanceof \DOMElement || self::NS !== $child->namespaceURI) {
676676
continue;
677677
}
678678
if (!\in_array($child->localName, ['deprecated'], true)) {

0 commit comments

Comments
 (0)