Skip to content

Commit 8a4672a

Browse files
[DI] fix undefined offset in InlineServiceDefinitionsPass
1 parent 8a01455 commit 8a4672a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/InlineServiceDefinitionsPass.php

Lines changed: 1 addition & 1 deletion
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)