Преглед на файлове

reinitialize array so arguments dont stack up

max преди 14 години
родител
ревизия
e2542962df
променени са 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);
                 }