diff --git a/components/console/introduction.rst b/components/console/introduction.rst index 4a55cc29dbe..d4566925b10 100644 --- a/components/console/introduction.rst +++ b/components/console/introduction.rst @@ -504,8 +504,8 @@ Calling a command from another one is straightforward:: '--yell' => true, ); - $input = new ArrayInput($arguments); - $returnCode = $command->run($input, $output); + $greetInput = new ArrayInput($arguments); + $returnCode = $command->run($greetInput, $output); // ... }