Skip to content

Commit 19ecff2

Browse files
committed
refactor: preg_match_all() likely less to return false
1 parent db363a7 commit 19ecff2

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
@@ -348,7 +348,7 @@ public static function promptByMultipleKeys(string $text, array $options): array
348348
// return the prompt again if $input contain(s) non-numeric character, except a comma.
349349
// And if max from $options less than max from input,
350350
// it means user tried to access null value in $options
351-
if ($pattern === 0 || $pattern === false || $maxOptions < $maxInput) {
351+
if ($pattern === 0 || $maxOptions < $maxInput) {
352352
static::error('Please select correctly.');
353353
CLI::newLine();
354354

0 commit comments

Comments
 (0)