Skip to content

Commit 584b7b4

Browse files
committed
minor symfony#23744 [Form] Removed useless argument $definition (yceruto)
This PR was merged into the 3.3 branch. Discussion ---------- [Form] Removed useless argument $definition | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a After https://github.com/symfony/symfony/pull/22175/files this argument is not used anymore. Commits ------- 81396c7 Removed useless argument $definition
2 parents b98a4a3 + 81396c7 commit 584b7b4

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)