Skip to content

Commit 69bdd16

Browse files
Merge branch '4.4' into 5.0
* 4.4: [Console] fix reading from STDIN
2 parents 9ce1c15 + 9f9ab1e commit 69bdd16

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
@@ -105,7 +105,7 @@ private function doAsk(OutputInterface $output, Question $question)
105105
{
106106
$this->writePrompt($output, $question);
107107

108-
$inputStream = $this->inputStream ?: fopen('php://stdin', 'r');
108+
$inputStream = $this->inputStream ?: STDIN;
109109
$autocomplete = $question->getAutocompleterCallback();
110110

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

0 commit comments

Comments
 (0)