Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  [Console] fix reading from STDIN
  • Loading branch information
nicolas-grekas committed Jul 4, 2020
2 parents 9ce1c15 + 9f9ab1e commit 69bdd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/QuestionHelper.php
Expand Up @@ -105,7 +105,7 @@ private function doAsk(OutputInterface $output, Question $question)
{
$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()) {
Expand Down

0 comments on commit 69bdd16

Please sign in to comment.