reinitialize array so arguments dont stack up

This commit is contained in:
max 2011-03-15 12:00:22 -07:00
parent e5fad94482
commit e2542962df

View File

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