Skip to content

Commit e799fc4

Browse files
authored
Update Choose.php
1 parent d64544d commit e799fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Component/Interact/Choose.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function one(string $description, $options, $default = null, bool
6161
beginChoice:
6262
$r = Console::readln("Your choice$defaultText : ");
6363

64-
if (empty($r) && $default !== null) {
64+
if ($r === '' && $default !== null) {
6565
return $default;
6666
}
6767

0 commit comments

Comments
 (0)