Skip to content
Snippets Groups Projects
Commit f9d05304 authored by David Maus's avatar David Maus
Browse files

Make sure that Invoker::invoke() has no side-effects

parent d685e1a2
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class Invoker
*/
public function invoke (CommandInterface $command, ParamBag $parameters = null)
{
$params = $this->getParameters();
$params = clone($this->getParameters());
if ($parameters) {
$params->mergeWith($parameters);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment