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:
parent
935bad9d2c
commit
cd2f8e7d65
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user