소스 검색

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);
                 }