Skip to content

Commit 9a4d517

Browse files
[2.3] Remove most refs uses
1 parent 34439fb commit 9a4d517

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)