Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1aa652e

Browse filesBrowse 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
Copy full SHA for 1aa652e

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.