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

Skip to content

Commit 1aa652e

Browse files
bug #29992 [DependencyInjection] fix DOM element namespace URL access (xabbuh)
This PR was merged into the 4.3-dev branch. Discussion ---------- [DependencyInjection] fix DOM element namespace URL access | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 429bddf fix DOM element namespace URL access
2 parents d0effcd + 429bddf commit 1aa652e

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)