Merge branch '4.4' into 5.0
* 4.4: [Console] fix reading from STDIN
This commit is contained in:
commit
c2c4d4dc12
@ -105,7 +105,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 || !self::$stty || !Terminal::hasSttyAvailable()) {
|
||||
|
Reference in New Issue
Block a user