Skip to content

Commit f690cef

Browse files
committed
minor symfony#14211 [DependencyInjection] Removed useless strtolower call (dosten)
This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] Removed useless strtolower call | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - The `setDefinition` method already lowercase the id, so it's not necessary to lowercase it twice. Commits ------- f62b050 Removed useless strtolower call
2 parents fec2f03 + f62b050 commit f690cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ public function getAlias($id)
770770
*/
771771
public function register($id, $class = null)
772772
{
773-
return $this->setDefinition(strtolower($id), new Definition($class));
773+
return $this->setDefinition($id, new Definition($class));
774774
}
775775

776776
/**

0 commit comments

Comments
 (0)