Skip to content

Commit 694b13b

Browse files
committed
[DependencyInjection] Remove unused parameter of private property
1 parent a355e07 commit 694b13b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dumper/PhpDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private function addServiceInlinedDefinitions($id, $definition)
315315
throw new ServiceCircularReferenceException($id, array($id));
316316
}
317317

318-
$code .= $this->addNewInstance($id, $sDefinition, '$'.$name, ' = ');
318+
$code .= $this->addNewInstance($sDefinition, '$'.$name, ' = ');
319319

320320
if (!$this->hasReference($id, $sDefinition->getMethodCalls(), true) && !$this->hasReference($id, $sDefinition->getProperties(), true)) {
321321
$code .= $this->addServiceMethodCalls(null, $sDefinition, $name);
@@ -389,7 +389,7 @@ private function addServiceInstance($id, $definition)
389389
$instantiation .= ' = ';
390390
}
391391

392-
$code = $this->addNewInstance($id, $definition, $return, $instantiation);
392+
$code = $this->addNewInstance($definition, $return, $instantiation);
393393

394394
if (!$simple) {
395395
$code .= "\n";
@@ -676,7 +676,7 @@ private function addServices()
676676
return $publicServices.$privateServices;
677677
}
678678

679-
private function addNewInstance($id, Definition $definition, $return, $instantiation)
679+
private function addNewInstance(Definition $definition, $return, $instantiation)
680680
{
681681
$class = $this->dumpValue($definition->getClass());
682682

0 commit comments

Comments
 (0)