[DI] minor: use a strict comparision in setDecoratedService

This commit is contained in:
Kévin Dunglas 2018-02-05 08:51:00 +01:00
parent 478fbdc241
commit f167b505c4
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}