Skip to content

Commit 5b7d338

Browse files
committed
[Console] Fixed notice in DialogHelper
1 parent c6c5a35 commit 5b7d338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/DialogHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function ask(OutputInterface $output, $question, $default = null, array $
150150
$c .= fread($inputStream, 2);
151151

152152
// A = Up Arrow. B = Down Arrow
153-
if ('A' === $c[2] || 'B' === $c[2]) {
153+
if (isset($c[2]) && ('A' === $c[2] || 'B' === $c[2])) {
154154
if ('A' === $c[2] && -1 === $ofs) {
155155
$ofs = 0;
156156
}

0 commit comments

Comments
 (0)