8000 minor #17941 [DependencyInjection] Remove unused parameter of private… · dunglas/symfony@248b4cf · GitHub < 8000 link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png">
[go: up one dir, main page]

Skip to content

Commit 248b4cf

Browse files
committed
minor symfony#17941 [DependencyInjection] Remove unused parameter of private property (paradajozsef)
This PR was merged into the 3.0 branch. Discussion ---------- [DependencyInjection] Remove unused parameter of private property | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- d5129d2 [DependencyInjection] Remove unused parameter of private property
2 parents 809723f + d5129d2 commit 248b4cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/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)
0