1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Preserve possible-undefinedness

This commit is contained in:
Matthew Brown 2019-11-04 07:12:22 -05:00
parent 5faebe2674
commit 8dffd65a59

View File

@ -56,6 +56,7 @@ class UnionTemplateHandler
$new_union_type = new Union($atomic_types);
$new_union_type->ignore_nullable_issues = $union_type->ignore_nullable_issues;
$new_union_type->ignore_falsable_issues = $union_type->ignore_falsable_issues;
$new_union_type->possibly_undefined = $union_type->possibly_undefined;
return $new_union_type;
}