From c075bbb3b46e669e940527325ad3933c6d9db1f2 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 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); // ... }