Skip to content

Commit

Permalink
[Console] hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed May 7, 2021
1 parent abf150a commit 5de9fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/QuestionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ private function readInput($inputStream, Question $question)
$cp = $this->setIOCodepage();
$ret = fgets($inputStream, 4096);

return $this->resetIOCodepage($cp, $ret);
return false !== $ret ? $this->resetIOCodepage($cp, $ret) : false;
}

$multiLineStreamReader = $this->cloneInputStream($inputStream);
Expand Down

0 comments on commit 5de9fba

Please sign in to comment.