[DI] minor: use a strict comparision in setDecoratedService
This commit is contained in:
parent
478fbdc241
commit
f167b505c4
@ -144,7 +144,7 @@ class Definition
|
||||
*/
|
||||
public function setDecoratedService($id, $renamedId = null)
|
||||
{
|
||||
if ($renamedId && $id == $renamedId) {
|
||||
if ($renamedId && $id === $renamedId) {
|
||||
throw new \InvalidArgumentException(sprintf('The decorated service inner name for "%s" must be different than the service name itself.', $id));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user