Merge branch '5.1'
* 5.1: [Console] fix reading from STDIN
This commit is contained in:
commit
e6e1ca38c0
@ -107,7 +107,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