We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64544d commit e799fc4Copy full SHA for e799fc4
src/Component/Interact/Choose.php
@@ -61,7 +61,7 @@ public static function one(string $description, $options, $default = null, bool
61
beginChoice:
62
$r = Console::readln("Your choice$defaultText : ");
63
64
- if (empty($r) && $default !== null) {
+ if ($r === '' && $default !== null) {
65
return $default;
66
}
67
0 commit comments