Skip to content

Commit 6c35102

Browse files
committed
minor #13866 [2.3] Remove most refs uses (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [2.3] Remove most refs uses | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #13813 | License | MIT | Doc PR | - Removes some references usages. They are error prone, and trigger too many copies-on-writes. Commits ------- 8862705 [2.3] Remove most refs uses
2 parents 92b2c76 + 9a4d517 commit 6c35102

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ContainerBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -997,9 +997,7 @@ public function createService(Definition $definition, $id, $tryProxy = true)
997997
public function resolveServices($value)
998998
{
999999
if (is_array($value)) {
1000-
foreach ($value as &$v) {
1001-
$v = $this->resolveServices($v);
1002-
}
1000+
$value = array_map(array($this, 'resolveServices'), $value);
10031001
} elseif ($value instanceof Reference) {
10041002
$value = $this->get((string) $value, $value->getInvalidBehavior());
10051003
} elseif ($value instanceof Definition) {

0 commit comments

Comments
 (0)