Skip to content

Commit 81396c7

Browse files
committed
Removed useless argument $definition
1 parent 468b44a commit 81396c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Form/DependencyInjection/FormPass.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
1717
use Symfony\Component\DependencyInjection\ContainerBuilder;
1818
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
19-
use Symfony\Component\DependencyInjection\Definition;
2019
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
2120
use Symfony\Component\DependencyInjection\Reference;
2221

@@ -53,12 +52,12 @@ public function process(ContainerBuilder $container)
5352
if (new IteratorArgument(array()) != $definition->getArgument(2)) {
5453
return;
5554
}
56-
$definition->replaceArgument(0, $this->processFormTypes($container, $definition));
55+
$definition->replaceArgument(0, $this->processFormTypes($container));
5756
$definition->replaceArgument(1, $this->processFormTypeExtensions($container));
5857
$definition->replaceArgument(2, $this->processFormTypeGuessers($container));
5958
}
6059

61-
private function processFormTypes(ContainerBuilder $container, Definition $definition)
60+
private function processFormTypes(ContainerBuilder $container)
6261
{
6362
// Get service locator argument
6463
$servicesMap = array();

0 commit comments

Comments
 (0)