Skip to content

Commit db12ec3

Browse files
authored
refactor: Fix phpstan condNotBoolean (#9368)
1 parent 91e788a commit db12ec3

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

system/CLI/CLI.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public static function promptByKey($text, array $options, $validation = null): s
289289

290290
CLI::isZeroOptions($options);
291291

292-
if ($line = array_shift($text)) {
292+
if (($line = array_shift($text)) !== null) {
293293
CLI::write($line);
294294
}
295295

utils/phpstan-baseline/if.condNotBoolean.neon

-8
This file was deleted.

utils/phpstan-baseline/loader.neon

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ includes:
2121
- generator.returnType.neon
2222
- generator.valueType.neon
2323
- greaterOrEqual.invalid.neon
24-
- if.condNotBoolean.neon
2524
- isset.offset.neon
2625
- isset.property.neon
2726
- method.alreadyNarrowedType.neon

0 commit comments

Comments
 (0)