Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2e55ff

Browse files
[DI] minor fix
1 parent 41f57ed commit c2e55ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,15 +518,15 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $file, $lowercase =
518518
try {
519519
$arguments[$key] = new IteratorArgument($arg);
520520
} catch (InvalidArgumentException $e) {
521-
throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="%s" only accepts collections of type="service" references in "%s".', $name, $file));
521+
throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="iterator" only accepts collections of type="service" references in "%s".', $name, $file));
522522
}
523523
break;
524524
case 'service_locator':
525525
$arg = $this->getArgumentsAsPhp($arg, $name, $file, false);
526526
try {
527527
$arguments[$key] = new ServiceLocatorArgument($arg);
528528
} catch (InvalidArgumentException $e) {
529-
throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="%s" only accepts maps of type="service" references in "%s".', $name, $file));
529+
throw new InvalidArgumentException(sprintf('Tag "<%s>" with type="service_locator" only accepts maps of type="service" references in "%s".', $name, $file));
530530
}
531531
break;
532532
case 'tagged':

0 commit comments

Comments
 (0)