Skip to content

Commit e13ca51

Browse files
committed
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
1 parent 044de92 commit e13ca51

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Dumper/PhpDumper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,6 @@ private function addMethodMap(): string
11701170
if (!$id->isDeprecated()) {
11711171
continue;
11721172
}
1173-
$id = (string) $id;
11741173
$code .= ' '.$this->doExport($alias).' => '.$this->doExport($this->generateMethodName($alias)).",\n";
11751174
}
11761175

0 commit comments

Comments
 (0)