bug #34055 [Console] Revert wrong change (fabpot)
This PR was merged into the 4.4 branch.
Discussion
----------
[Console] Revert wrong change
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix #34012 <!-- prefix each issue number with "Fix #", if any -->
| License | MIT
| Doc PR | n/a
This partially reverts #34012 as it breaks uses cases like this:
```
echo "foo\nbar\n" | SHELL_INTERACTIVE=1 symfony console something
```
Commits
-------
f592322251
[Console] Revert wrong change
This commit is contained in:
commit
bbafd76c6c
@ -115,7 +115,7 @@ class QuestionHelper extends Helper
|
||||
{
|
||||
$this->writePrompt($output, $question);
|
||||
|
||||
$inputStream = $this->inputStream ?: fopen('php://stdin', 'r');
|
||||
$inputStream = $this->inputStream ?: STDIN;
|
||||
$autocomplete = $question->getAutocompleterCallback();
|
||||
|
||||
if (null === $autocomplete || !Terminal::hasSttyAvailable()) {
|
||||
|
Reference in New Issue
Block a user