mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Preserve possible-undefinedness
This commit is contained in:
parent
5faebe2674
commit
8dffd65a59
@ -56,6 +56,7 @@ class UnionTemplateHandler
|
|||||||
$new_union_type = new Union($atomic_types);
|
$new_union_type = new Union($atomic_types);
|
||||||
$new_union_type->ignore_nullable_issues = $union_type->ignore_nullable_issues;
|
$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->ignore_falsable_issues = $union_type->ignore_falsable_issues;
|
||||||
|
$new_union_type->possibly_undefined = $union_type->possibly_undefined;
|
||||||
|
|
||||||
return $new_union_type;
|
return $new_union_type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user