Skip to content

Commit 4de47b4

Browse files
committed
minor symfony#10787 Update console.rst: reversing constants (logical purpose) (ajie62)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes symfony#10787). Discussion ---------- Update console.rst: reversing constants (logical purpose) For logical purpose, I added a `!` right before `$this->requirePassword` in the `configure()` method, otherwise the requirePassword argument would be set as REQUIRED instead of OPTIONAL. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 9298445 Update console.rst: reversing constants (logical purpose)
2 parents 9bb5a53 + 9298445 commit 4de47b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ available in the ``configure()`` method::
8484
{
8585
$this
8686
// ...
87-
->addArgument('password', $this->requirePassword ? InputArgument::OPTIONAL : InputArgument::REQUIRED, 'User password')
87+
->addArgument('password', $this->requirePassword ? InputArgument::REQUIRED : InputArgument::OPTIONAL, 'User password')
8888
;
8989
}
9090
}

0 commit comments

Comments
 (0)