Skip to content

Commit 699b6b3

Browse files
Pavel Jandaf3l1x
Pavel Janda
authored andcommitted
docs: method ::setArgument() is undefined, use ::addArgument()
1 parent 2ef1484 commit 699b6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ final class AddUserCommand extends Command
138138
// description (optional)
139139
->setDescription('Adds user with given username to database')
140140
// arguments (maybe required or not)
141-
->setArgument('username', InputArgument::REQUIRED, 'User\'s username');
141+
->addArgument('username', InputArgument::REQUIRED, 'User\'s username');
142142
// you can list options as well (refer to symfony/console docs for more info)
143143
}
144144

0 commit comments

Comments
 (0)