You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Loader/XmlFileLoader.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -671,12 +671,11 @@ private function validateAlias(\DOMElement $alias, $file)
671
671
}
672
672
}
673
673
674
-
$allowedTags = array('deprecated');
675
674
foreach ($alias->childNodesas$child) {
676
675
if (!$childinstanceof \DOMElement && self::NS !== $child->namespaceURI) {
677
676
continue;
678
677
}
679
-
if (!in_array($child->localName, $allowedTags, true)) {
678
+
if (!\in_array($child->localName, ['deprecated'], true)) {
680
679
thrownewInvalidArgumentException(sprintf('Invalid child element "%s" defined for alias "%s" in "%s".', $child->localName, $alias->getAttribute('id'), $file));
if (!\in_array($key, ['alias', 'public', 'deprecated'])) {
353
353
thrownewInvalidArgumentException(sprintf('The configuration key "%s" is unsupported for the service "%s" which is defined as an alias in "%s". Allowed configuration keys for service aliases are "alias" and "public".', $key, $id, $file));
0 commit comments