Skip to content

Commit e6e1ca3

Browse files
Merge branch '5.1'
* 5.1: [Console] fix reading from STDIN
2 parents 901e938 + 5de5b7d commit e6e1ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/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)