8000 [DI] minor cleanup · chapa/symfony@c41fa26 · GitHub
[go: up one dir, main page]

Skip to content

Commit c41fa26

Browse files
[DI] minor cleanup
1 parent 9624a44 commit c41fa26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function addMethodCall(string $method, array $arguments = [], bool $retur
357357
if (empty($method)) {
358358
throw new InvalidArgumentException('Method name cannot be empty.');
359359
}
360-
$this->calls[] = 2 < \func_num_args() && func_get_arg(2) ? [$method, $arguments, true] : [$method, $arguments];
360+
$this->calls[] = $returnsClone ? [$method, $arguments, true] : [$method, $arguments];
361361

362362
return $this;
363363
}

0 commit comments

Comments
 (0)
0