Skip to content

Commit a4c50c3

Browse files
committed
refactor: Fix phpstan condNotBoolean
1 parent 046967a commit a4c50c3

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 8 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ includes:
2222
- generator.returnType.neon
2323
- generator.valueType.neon
2424
- greaterOrEqual.invalid.neon
25-
- if.condNotBoolean.neon
2625
- isset.offset.neon
2726
- isset.property.neon
2827
- method.alreadyNarrowedType.neon

0 commit comments

Comments
 (0)