Skip to content

Commit 3bbe0d7

Browse files
Merge branch '3.4' into 4.4
* 3.4: [Routing] µtweaks
2 parents ed8bd70 + 53b432f commit 3bbe0d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Loader/XmlFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ private function parseConfigs(\DOMElement $node, string $path): array
314314

315315
if ($controller = $node->getAttribute('controller')) {
316316
if (isset($defaults['_controller'])) {
317-
$name = $node->hasAttribute('id') ? sprintf('"%s"', $node->getAttribute('id')) : sprintf('the "%s" tag', $node->tagName);
317+
$name = $node->hasAttribute('id') ? sprintf('"%s".', $node->getAttribute('id')) : sprintf('the "%s" tag.', $node->tagName);
318318

319-
throw new \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "controller" attribute and the defaults key "_controller" for %s.', $path, $name));
319+
throw new \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "controller" attribute and the defaults key "_controller" for ', $path).$name);
320320
}
321321

322322
$defaults['_controller'] = $controller;

0 commit comments

Comments
 (0)