Skip to content

Commit 9f9ab1e

Browse files
[Console] fix reading from STDIN
1 parent a3562f4 commit 9f9ab1e

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)