Remove unnecessary statement

The casting of `$id` to string inside the second foreach loop in `\Symfony\Component\DependencyInjection\Dumper\PhpDumper::addMethodMap` is redundant, as the variable is not used after the casting inside nor outside the loop (while still in the loop, it gets overriden upon next iteration).

Fixes #33206
This commit is contained in:
david-binda 2019-08-16 17:14:15 +02:00
parent 6d6cea2baa
commit cde223ad2a
1 changed files with 0 additions and 1 deletions

View File

@ -1170,7 +1170,6 @@ EOF;
if (!$id->isDeprecated()) {
continue;
}
$id = (string) $id;
$code .= ' '.$this->doExport($alias).' => '.$this->doExport($this->generateMethodName($alias)).",\n";
}