We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735f543 commit ad6075bCopy full SHA for ad6075b
service_container/definitions.rst
@@ -92,10 +92,10 @@ fetched from the container::
92
93
// adds a new argument with the name of the argument
94
// $argumentName = the name of the argument in the constructor
95
- $argument = $definition->setArgument('$argumentName', $argumentValue);
+ $definition = $definition->setArgument('$argumentName', $argumentValue);
96
97
// adds a new argument
98
- $definition->addArgument($argument);
+ $definition->addArgument($argumentValue);
99
100
// replaces argument on a specific index (0 = first argument)
101
$definition->replaceArgument($index, $argument);
0 commit comments