Skip to content

Commit 397d1d7

Browse files
Merge branch '5.0' into 5.1
* 5.0: [Console] fix reading from STDIN
2 parents 9f3daaa + 69bdd16 commit 397d1d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private function doAsk(OutputInterface $output, Question $question)
107107
{
108108
$this->writePrompt($output, $question);
109109

110-
$inputStream = $this->inputStream ?: fopen('php://stdin', 'r');
110+
$inputStream = $this->inputStream ?: STDIN;
111111
$autocomplete = $question->getAutocompleterCallback();
112112

113113
if (null === $autocomplete || !self::$stty || !Terminal::hasSttyAvailable()) {

0 commit comments

Comments
 (0)