1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix memory corruption

This commit is contained in:
Brown 2019-11-11 16:56:44 -05:00
parent 935bad9d2c
commit cd2f8e7d65

View File

@ -109,7 +109,7 @@ class TryAnalyzer
if (!isset($try_context->vars_in_scope[$var_id])) {
$try_context->vars_in_scope[$var_id] = clone $type;
$try_context->vars_in_scope[$var_id]->from_docblock = true;
$type->possibly_undefined_from_try = true;
$try_context->vars_in_scope[$var_id]->possibly_undefined_from_try = true;
} else {
$try_context->vars_in_scope[$var_id] = Type::combineUnionTypes(
$try_context->vars_in_scope[$var_id],