Skip to content

Commit 4deb3f0

Browse files
michealweaverryan
micheal
authored andcommitted
Fix reference to output object
`$this` does not have a `writeln` method on it, but `$output` does.
1 parent c1d62da commit 4deb3f0

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)