From dfcde17e6b7ea7b182e8f9d27a50db59dc913905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mindaugas=20Vaitiek=C5=ABnas?= Date: Sat, 29 Nov 2025 12:05:45 +0100 Subject: [PATCH] [Console] Update Cursor helper to use injected argument --- components/console/helpers/cursor.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);