8000 minor #5552 rename $input to $greetInput (Xosofox) · symfony/symfony-docs@408c102 · GitHub
[go: up one dir, main page]

Skip to content

Commit 408c102

Browse files
committed
minor #5552 rename $input to $greetInput (Xosofox)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #5552). Discussion ---------- rename $input to $greetInput Not a good practice to set/abuse a variable that was passed as an argument Commits ------- 53b4a3d rename $input to $greetInput
2 parents a0a2575 + 53b4a3d commit 408c102
8000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/console/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ Calling a command from another one is straightforward::
469469
'--yell' => true,
470470
);
471471

472-
$input = new ArrayInput($arguments);
473-
$returnCode = $command->run($input, $output);
472+
$greetInput = new ArrayInput($arguments);
473+
$returnCode = $command->run($greetInput, $output);
474474

475475
// ...
476476
}

0 commit comments

Comments
 (0)
0