Просмотр исходного кода

Merge remote branch 'maxbeutel/upstream'

Fabien Potencier 14 лет назад
Родитель
Сommit
29954e3fce
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

+ 1 - 0
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);
                 }