Skip to content

Commit 61eeb77

Browse files
committed
refactor: replace non boolean if condition
1 parent 712aa36 commit 61eeb77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public static function prompt(string $field, $options = null, $validation = null
246246
$default = $options;
247247
}
248248

249-
if (is_array($options) && $options) {
249+
if (is_array($options) && $options !== []) {
250250
$opts = $options;
251251
$extraOutputDefault = static::color((string) $opts[0], 'green');
252252

0 commit comments

Comments
 (0)