Skip to content

Commit 5eb17e5

Browse files
[DI] fix undefined offset in InlineServiceDefinitionsPass
1 parent f14cd77 commit 5eb17e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@ private function isInlineableDefinition($id, Definition $definition, ServiceRefe
138138
return false;
139139
}
140140

141-
return $this->container->getDefinition($ids[0])->isShared();
141+
return !$ids || $this->container->getDefinition($ids[0])->isShared();
142142
}
143143
}

0 commit comments

Comments
 (0)