1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

allow use of an empty reconciliation if the type is from docblock

This commit is contained in:
orklah 2022-02-13 19:44:12 +01:00
parent aaf34d7573
commit 093d9b2821

View File

@ -298,7 +298,9 @@ class NegatedAssertionReconciler extends Reconciler
$failed_reconciliation = Reconciler::RECONCILIATION_EMPTY;
return Type::getNever();
return $existing_var_type->from_docblock
? Type::getMixed()
: Type::getNever();
}
return $existing_var_type;