Skip to content

Commit 53b4a3d

Browse files
xosofoxwouterj
authored andcommitted
rename $input to $greetInput
Not a good practice to set/abuse a variable that was passed as an argument
1 parent a0a2575 commit 53b4a3d

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)