Skip to content

Commit

Permalink
fix a case not always on TArray
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jan 5, 2022
1 parent 3c468b3 commit ee99dea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ private static function reconcileNonEmptyCountable(
$did_remove_type = true;

$existing_var_type->removeType('array');
} elseif (!$array_atomic_type->isEmptyArray()) {
} elseif (!($array_atomic_type instanceof TArray && $array_atomic_type->isEmptyArray())) {
$did_remove_type = true;

if (!$min_count) {
Expand Down

0 comments on commit ee99dea

Please sign in to comment.