From c2e55ff3f4260d3dd00e1617b685ee4b00362d1f Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 29 Oct 2018 18:21:05 +0100 Subject: [PATCH] [DI] minor fix --- .../Component/DependencyInjection/Loader/XmlFileLoader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php index 3cb870a151..02bc070e19 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php @@ -518,7 +518,7 @@ class XmlFileLoader extends FileLoader try { $arguments[$key] = new IteratorArgument($arg); } catch (InvalidArgumentException $e) { - throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="%s" only accepts collections of type="service" references in "%s".', $name, $file)); + throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="iterator" only accepts collections of type="service" references in "%s".', $name, $file)); } break; case 'service_locator': @@ -526,7 +526,7 @@ class XmlFileLoader extends FileLoader try { $arguments[$key] = new ServiceLocatorArgument($arg); } catch (InvalidArgumentException $e) { - throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="%s" only accepts maps of type="service" references in "%s".', $name, $file)); + throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="service_locator" only accepts maps of type="service" references in "%s".', $name, $file)); } break; case 'tagged':