Skip to content

Commit f167b50

Browse files
committed
[DI] minor: use a strict comparision in setDecoratedService
1 parent 478fbdc commit f167b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function setFactoryMethod($factoryMethod)
144144
*/
145145
public function setDecoratedService($id, $renamedId = null)
146146
{
147-
if ($renamedId && $id == $renamedId) {
147+
if ($renamedId && $id === $renamedId) {
148148
throw new \InvalidArgumentException(sprintf('The decorated service inner name for "%s" must be different than the service name itself.', $id));
149149
}
150150

0 commit comments

Comments
 (0)