Skip to content

Commit 999527a

Browse files
committed
bug #6787 Fix reference to output object (micheal)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6787). Discussion ---------- Fix reference to output object `$this` does not have a `writeln` method on it, but `$output` does. Commits ------- 4deb3f0 Fix reference to output object
2 parents c1d62da + 4deb3f0 commit 999527a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Use input options or arguments to pass information to the command::
131131
]);
132132

133133
// retrieve the argument value using getArgument()
134-
$this->writeln('Username: '.$input->getArgument('username'));
134+
$output->writeln('Username: '.$input->getArgument('username'));
135135
}
136136

137137
Now, you can pass the username to the command:

0 commit comments

Comments
 (0)