@@ -315,7 +315,7 @@ private function addServiceInlinedDefinitions($id, $definition)
315
315
throw new ServiceCircularReferenceException ($ id , array ($ id ));
316
316
}
317
317
318
- $ code .= $ this ->addNewInstance ($ id , $ sDefinition , '$ ' .$ name , ' = ' );
318
+ $ code .= $ this ->addNewInstance ($ sDefinition , '$ ' .$ name , ' = ' );
319
319
320
320
if (!$ this ->hasReference ($ id , $ sDefinition ->getMethodCalls (), true ) && !$ this ->hasReference ($ id , $ sDefinition ->getProperties (), true )) {
321
321
$ code .= $ this ->addServiceMethodCalls (null , $ sDefinition , $ name );
@@ -389,7 +389,7 @@ private function addServiceInstance($id, $definition)
389
389
$ instantiation .= ' = ' ;
390
390
}
391
391
392
- $ code = $ this ->addNewInstance ($ id , $ definition , $ return , $ instantiation );
392
+ $ code = $ this ->addNewInstance ($ definition , $ return , $ instantiation );
393
393
394
394
if (!$ simple ) {
395
395
$ code .= "\n" ;
@@ -676,7 +676,7 @@ private function addServices()
676
676
return $ publicServices .$ privateServices ;
677
677
}
678
678
679
- private function addNewInstance ($ id , Definition $ definition , $ return , $ instantiation )
679
+ private function addNewInstance (Definition $ definition , $ return , $ instantiation )
680
680
{
681
681
$ class = $ this ->dumpValue ($ definition ->getClass ());
682
682
0 commit comments