From 8f9ff4f7a0548e58077caa126ed31fb44cbbc810 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 19 Apr 2020 19:10:00 +0200 Subject: [PATCH] [Routing] fix CS --- src/Symfony/Component/Routing/Loader/XmlFileLoader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php index 29d3e4a771..5e31d69785 100644 --- a/src/Symfony/Component/Routing/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/XmlFileLoader.php @@ -301,9 +301,9 @@ class XmlFileLoader extends FileLoader } if ($stateless = $node->getAttribute('stateless')) { if (isset($defaults['_stateless'])) { - $name = $node->hasAttribute('id') ? sprintf('"%s"', $node->getAttribute('id')) : sprintf('the "%s" tag', $node->tagName); + $name = $node->hasAttribute('id') ? sprintf('"%s".', $node->getAttribute('id')) : sprintf('the "%s" tag.', $node->tagName); - throw new \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "stateless" attribute and the defaults key "_stateless" for %s.', $path, $name)); + throw new \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "stateless" attribute and the defaults key "_stateless" for ', $path).$name); } $defaults['_stateless'] = XmlUtils::phpize($stateless);