Skip to content

Commit 974257d

Browse files
Merge branch '4.1'
* 4.1: [DI] fix undefined offset in InlineServiceDefinitionsPass [Security/Http] Fix deps conflict
2 parents af30a6e + 0f94a68 commit 974257d

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
@@ -120,6 +120,6 @@ private function isInlineableDefinition($id, Definition $definition, ServiceRefe
120120
return false;
121121
}
122122

123-
return $this->container->getDefinition($ids[0])->isShared();
123+
return !$ids || $this->container->getDefinition($ids[0])->isShared();
124124
}
125125
}

0 commit comments

Comments
 (0)