8000 minor #17652 [DependencyInjection] Remove unused parameter (dunglas) · symfony/symfony@816ecb7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 816ecb7

Browse files
committed
minor #17652 [DependencyInjection] Remove unused parameter (dunglas)
This PR was squashed before being merged into the 3.0 branch (closes #17652). Discussion ---------- [DependencyInjection] Remove unused parameter | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 1a58639 [DependencyInjection] Remove unused parameter
2 parents 1f7a693 + 1a58639 commit 816ecb7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php

Lines changed: 4 additions & 5 deletions
63FE
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function inlineArguments(ContainerBuilder $container, array $arguments,
7272
continue;
7373
}
7474

75-
if ($this->isInlineableDefinition($container, $id, $definition = $container->getDefinition($id))) {
75+
if ($this->isInlineableDefinition($id, $definition = $container->getDefinition($id))) {
7676
$this->compiler->addLogMessage($this->formatter->formatInlineService($this, $id, $this->currentId));
7777

7878
if ($definition->isShared()) {
@@ -100,13 +100,12 @@ private function inlineArguments(ContainerBuilder $container, array $arguments,
100100
/**
101101
* Checks if the definition is inlineable.
102102
*
103-
* @param ContainerBuilder $container
104-
* @param string $id
105-
* @param Definition $definition
103+
* @param string $id
104+
* @param Definition $definition
106105
*
107106
* @return bool If the definition is inlineable
108107
*/
109-
private function isInlineableDefinition(ContainerBuilder $container, $id, Definition $definition)
108+
private function isInlineableDefinition($id, Definition $definition)
110109
{
111110
if (!$definition->isShared()) {
112111
return true;

0 commit comments

Comments
 (0)
0