Skip to content

Commit

Permalink
avoid setting BoundArgument twice in YamlFileLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslaw-bogusz committed Jan 20, 2019
1 parent 7114689 commit 958ff16
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ private function parseDefinition($id, $service, $file, array $defaults)
$bindings = array_merge($bindings, $this->resolveServices($service['bind'], $file));
$bindingType = $this->isLoadingInstanceof ? BoundArgument::INSTANCEOF_BIND : BoundArgument::SERVICE_BIND;
foreach ($bindings as $argument => $value) {
if ($value instanceof BoundArgument) {
continue;
}
$bindings[$argument] = new BoundArgument($value, $bindingType, $file);
}
}
Expand Down

0 comments on commit 958ff16

Please sign in to comment.