Skip to content

Commit

Permalink
allow use of an empty reconciliation if the type is from docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Feb 13, 2022
1 parent aaf34d7 commit 093d9b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Psalm/Internal/Type/NegatedAssertionReconciler.php
Expand Up @@ -298,7 +298,9 @@ public static function reconcile(

$failed_reconciliation = Reconciler::RECONCILIATION_EMPTY;

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

return $existing_var_type;
Expand Down

0 comments on commit 093d9b2

Please sign in to comment.