diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php index 2eb4c71720..d4750a4679 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php @@ -118,6 +118,7 @@ EOF; foreach ($this->container->getInterfaceInjectors() as $injector) { $code .= sprintf(" if (\$instance instanceof \\%s) {\n", $injector->getClass()); foreach ($injector->getMethodCalls() as $call) { + $arguments = array(); foreach ($call[1] as $value) { $arguments[] = $this->dumpValue($value); }