Skip to content

Commit

Permalink
Rename variable to be consistent with existing convention.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Feb 13, 2022
1 parent 32c3894 commit fd0ecf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ public static function analyze(

$old_referenced_var_ids = $try_context->referenced_var_ids;

$previously_inside_try = $context->inside_try;
$was_inside_try = $context->inside_try;
$context->inside_try = true;
if ($statements_analyzer->analyze($stmt->stmts, $context) === false) {
return false;
}
$context->inside_try = $previously_inside_try;
$context->inside_try = $was_inside_try;

if ($try_context->finally_scope) {
foreach ($context->vars_in_scope as $var_id => $type) {
Expand Down

0 comments on commit fd0ecf2

Please sign in to comment.