Skip to content

Commit

Permalink
docs: method ::setArgument() is undefined, use ::addArgument()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Janda authored and f3l1x committed May 17, 2022
1 parent 2ef1484 commit 699b6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ final class AddUserCommand extends Command
// description (optional)
->setDescription('Adds user with given username to database')
// arguments (maybe required or not)
->setArgument('username', InputArgument::REQUIRED, 'User\'s username');
->addArgument('username', InputArgument::REQUIRED, 'User\'s username');
// you can list options as well (refer to symfony/console docs for more info)
}

Expand Down

0 comments on commit 699b6b3

Please sign in to comment.