[Console] fix reading from STDIN

This commit is contained in:
Nicolas Grekas 2020-07-04 11:30:27 +02:00
parent fec23313e7
commit 5da153603b
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {