diff --git a/Helper/QuestionHelper.php b/Helper/QuestionHelper.php index 14cc77468..f64e6cf72 100644 --- a/Helper/QuestionHelper.php +++ b/Helper/QuestionHelper.php @@ -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()) {