Skip to content

Commit

Permalink
fix inverted condition
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jan 5, 2022
1 parent ee99dea commit 7f40489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Type/SimpleAssertionReconciler.php
Expand Up @@ -554,7 +554,7 @@ private static function reconcileNonEmptyCountable(
if (!$array_atomic_type instanceof TNonEmptyArray
|| ($array_atomic_type->count < $min_count)
) {
if (!$array_atomic_type->isEmptyArray()) {
if ($array_atomic_type->isEmptyArray()) {
$existing_var_type->removeType('array');
} else {
$non_empty_array = new TNonEmptyArray(
Expand Down

0 comments on commit 7f40489

Please sign in to comment.