-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Don't go past exact matches when autocompleting #26875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Q | A |
---|---|
Branch? | 2.7 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #21789 |
License | MIT |
Doc PR | - |
7da55b3
to
e18fcbc
Compare
src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php
Outdated
Show resolved
Hide resolved
e18fcbc
to
8c9a511
Compare
src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php
Outdated
Show resolved
Hide resolved
8c9a511
to
adba79a
Compare
$question = new ChoiceQuestion('Please select a city', $possibleChoices); | ||
$question->setMaxAttempts(1); | ||
|
||
$this->assertSame('b', $dialog->ask($this->createInputInterfaceMock(), $this->createOutputInterface(), $question)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for merger: createInputInterfaceMock()
to be replaced by createStreamableInputInterfaceMock()
on 3.4
Thank you @nicolas-grekas. |
…(nicolas-grekas) This PR was merged into the 2.7 branch. Discussion ---------- [Console] Don't go past exact matches when autocompleting | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21789 | License | MIT | Doc PR | - Commits ------- adba79a [Console] Don't go past exact matches when autocompleting
on windows MINGW32.
the code: \vendor\symfony\symfony\src\Symfony\Component\Console\Helper\QuestionHelper.php:175 if (false === $ret) {
$ret = fgets($inputStream, 4096);
if (false === $ret) {
throw new RuntimeException('Aborted.');
}
$ret = trim($ret);
} but, when i use cmd.exe i can't input chinese word. |