diff --git a/components/console/helpers/cursor.rst b/components/console/helpers/cursor.rst index 63045f178ad..afe0afe30a8 100644 --- a/components/console/helpers/cursor.rst +++ b/components/console/helpers/cursor.rst @@ -22,12 +22,10 @@ of the output: { // ... - public function __invoke(OutputInterface $output): int + public function __invoke(Cursor $cursor, OutputInterface $output): int { // ... - $cursor = new Cursor($output); - // moves the cursor to a specific column (1st argument) and // row (2nd argument) position $cursor->moveToPosition(7, 11);