Skip to content

Commit 078bbcb

Browse files
committed
[DI] minor: use a strict comparision in setDecoratedService
1 parent 82dcf06 commit 078bbcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)