[Di] Fix undefined variable found by Php Inspections (EA Ultimate)

This commit is contained in:
Vladimir Reznichenko 2018-06-23 13:52:31 +02:00 committed by Nicolas Grekas
parent fd3571d172
commit a3a9e2ec19

View File

@ -501,7 +501,7 @@ EOTXT;
// $b = new ServiceB();
// $a = new ServiceA(ServiceB $b);
// $b->setServiceA(ServiceA $a);
if (isset($inlinedDefinition[$definition]) && $this->hasReference($id, array($def->getArguments(), $def->getFactory()))) {
if (isset($inlinedDefinitions[$definition]) && $this->hasReference($id, array($def->getArguments(), $def->getFactory()))) {
throw new ServiceCircularReferenceException($id, array($id));
}