reinitialize array so arguments dont stack up
This commit is contained in:
parent
e5fad94482
commit
e2542962df
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user