8000 minor #23222 [Routing] Fix XmlFileLoader exception message (voronkovich) · symfony/symfony@71b61b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 71b61b0

Browse files
committed
minor #23222 [Routing] Fix XmlFileLoader exception message (voronkovich)
This PR was merged into the 2.7 branch. Discussion ---------- [Routing] Fix XmlFileLoader exception message | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT When an `XmlFileLoader` encounters an unknown tag it throws an exception with message like `Unknown tag "foo" used in file "bar". Expected "default", "requirement" or "option".`. A proper message should be `Unknown tag "foo" used in file "bar". Expected "default", "requirement", "option" or "condition".` Commits ------- f6a94cb [Routing] Fix XmlFileLoader exception message
2 parents ac9a527 + f6a94cb commit 71b61b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private function parseConfigs(\DOMElement $node, $path)
250250
$condition = trim($n->textContent);
251251
break;
252252
default:
253-
throw new \InvalidArgumentException(sprintf('Unknown tag "%s" used in file "%s". Expected "default", "requirement" or "option".', $n->localName, $path));
253+
throw new \InvalidArgumentException(sprintf('Unknown tag "%s" used in file "%s". Expected "default", "requirement", "option" or "condition".', $n->localName, $path));
254254
}
255255
}
256256

0 commit comments

Comments
 (0)
0