From 53b4a3d2dfae4857eabb9ce14e8d2d2307ac8d6a Mon Sep 17 00:00:00 2001 From: Peter Dietrich Date: Wed, 22 Jul 2015 20:25:39 +0200 Subject: [PATCH] rename $input to $greetInput Not a good practice to set/abuse a variable that was passed as an argument --- components/console/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/console/introduction.rst b/components/console/introduction.rst index 81229476e8f..7401ad0d44b 100644 --- a/components/console/introduction.rst +++ b/components/console/introduction.rst @@ -469,8 +469,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); // ... }