Skip to content

Commit

Permalink
Drop remaining Type::getEmpty() references
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Jan 2, 2022
1 parent 82b5c4c commit 3116fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Psalm/Internal/Type/SimpleNegatedAssertionReconciler.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static function reconcile(
): ?Union {
if ($assertion === 'isset') {
if ($existing_var_type->possibly_undefined) {
return Type::getEmpty();
return Type::getNever();
}

if (!$existing_var_type->isNullable()
Expand Down Expand Up @@ -128,14 +128,14 @@ public static function reconcile(

return $existing_var_type->from_docblock
? Type::getNull()
: Type::getEmpty();
: Type::getNever();
}

return Type::getNull();
}

if ($assertion === 'array-key-exists') {
return Type::getEmpty();
return Type::getNever();
}

if (strpos($assertion, 'in-array-') === 0) {
Expand Down

0 comments on commit 3116fdf

Please sign in to comment.