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:
parent
aaf34d7573
commit
093d9b2821
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user