Skip to content

Commit e958e6c

Browse files
committed
Merge branch '8.0' into 8.1
* 8.0: [Console] Update Cursor helper to use injected argument
2 parents 5621f74 + 38d1226 commit e958e6c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/console/helpers/cursor.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ of the output:
2222
{
2323
// ...
2424
25-
public function __invoke(OutputInterface $output): int
25+
public function __invoke(Cursor $cursor, OutputInterface $output): int
2626
{
2727
// ...
2828
29-
$cursor = new Cursor($output);
30-
3129
// moves the cursor to a specific column (1st argument) and
3230
// row (2nd argument) position
3331
$cursor->moveToPosition(7, 11);

0 commit comments

Comments
 (0)