Skip to content
Permalink
Browse files

Fix memory corruption

  • Loading branch information
muglug committed Nov 11, 2019
1 parent 935bad9 commit cd2f8e7d657cc9f3f2b0450731e5e474c54caaed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php
@@ -109,7 +109,7 @@ public static function analyze(
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],

0 comments on commit cd2f8e7

Please sign in to comment.
You can’t perform that action at this time.