8000 avoid setting BoundArgument twice in YamlFileLoader · symfony/symfony@958ff16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 958ff16

Browse files
avoid setting BoundArgument twice in YamlFileLoader
1 parent 7114689 commit 958ff16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ private function parseDefinition($id, $service, $file, array $defaults)
562562
$bindings = array_merge($bindings, $this->resolveServices($service['bind'], $file));
563563
$bindingType = $this->isLoadingInstanceof ? BoundArgument::INSTANCEOF_BIND : BoundArgument::SERVICE_BIND;
564564
foreach ($bindings as $argument => $value) {
565+
if ($value instanceof BoundArgument) {
566+
continue;
567+
}
565568
$bindings[$argument] = new BoundArgument($value, $bindingType, $file);
566569
}
567570
}

0 commit comments

Comments
 (0)
0