bug #14888 [Console] Fix ask and askHidden methods (dosten)
This PR was merged into the 2.7 branch.
Discussion
----------
[Console] Fix ask and askHidden methods
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #14885
| License | MIT
| Doc PR | -
Commits
-------
5bb2cc8
Fix ask and askHidden methods
This commit is contained in:
commit
18f0dda25a
|
@ -205,7 +205,7 @@ class SymfonyStyle extends OutputStyle
|
|||
$question = new Question($question, $default);
|
||||
$question->setValidator($validator);
|
||||
|
||||
return $this->askQuestion($question, $validator);
|
||||
return $this->askQuestion($question);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -214,9 +214,11 @@ class SymfonyStyle extends OutputStyle
|
|||
public function askHidden($question, $validator = null)
|
||||
{
|
||||
$question = new Question($question);
|
||||
$question->setHidden(true);
|
||||
|
||||
return $this->askQuestion($question, $validator);
|
||||
$question->setHidden(true);
|
||||
$question->setValidator($validator);
|
||||
|
||||
return $this->askQuestion($question);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in New Issue