Skip to content

Commit

Permalink
refactor: Fix phpstan condNotBoolean (#9368)
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 authored Jan 4, 2025
1 parent 91e788a commit db12ec3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion system/CLI/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public static function promptByKey($text, array $options, $validation = null): s

CLI::isZeroOptions($options);

if ($line = array_shift($text)) {
if (($line = array_shift($text)) !== null) {
CLI::write($line);
}

Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/if.condNotBoolean.neon

This file was deleted.

1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ includes:
- generator.returnType.neon
- generator.valueType.neon
- greaterOrEqual.invalid.neon
- if.condNotBoolean.neon
- isset.offset.neon
- isset.property.neon
- method.alreadyNarrowedType.neon
Expand Down

0 comments on commit db12ec3

Please sign in to comment.