Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
muglug committed Nov 11, 2019
1 parent cd2f8e7 commit 1a54aa5752058590a2280385a47806f8e9b54278
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php
@@ -109,7 +109,9 @@ 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;
$try_context->vars_in_scope[$var_id]->possibly_undefined_from_try = true;
$type = clone $type;
$type->possibly_undefined_from_try = true;
$context->vars_in_scope[$var_id] = $type;
} else {
$try_context->vars_in_scope[$var_id] = Type::combineUnionTypes(
$try_context->vars_in_scope[$var_id],

0 comments on commit 1a54aa5

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