Skip to content

Commit 70b73ee

Browse files
authored
Merge pull request #268 from php-school/revert-267-backspace-fix
Revert "Fix backspace on empty input issue."
2 parents 266336a + af37282 commit 70b73ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Input/InputIO.php

-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ public function collect(Input $input) : InputResult
7777
case InputCharacter::BACKSPACE:
7878
if (!empty($inputValue)) {
7979
$inputValue = substr($inputValue, 0, -1);
80-
if (!is_string($inputValue)) {
81-
$inputValue = '';
82-
}
8380
$this->parentMenu->redraw();
8481
$this->drawInput($input, $inputValue);
8582
}

0 commit comments

Comments
 (0)