@@ 441-459 (lines=19) @@ | ||
438 | } |
|
439 | } |
|
440 | ||
441 | if ($stmt->finally) { |
|
442 | $suppressed_issues = $statements_analyzer->getSuppressedIssues(); |
|
443 | ||
444 | foreach ($issues_to_suppress as $issue_to_suppress) { |
|
445 | if (!in_array($issue_to_suppress, $suppressed_issues, true)) { |
|
446 | $statements_analyzer->addSuppressedIssues([$issue_to_suppress]); |
|
447 | } |
|
448 | } |
|
449 | ||
450 | $catch_context->has_returned = false; |
|
451 | ||
452 | $statements_analyzer->analyze($stmt->finally->stmts, $catch_context); |
|
453 | ||
454 | foreach ($issues_to_suppress as $issue_to_suppress) { |
|
455 | if (!in_array($issue_to_suppress, $suppressed_issues, true)) { |
|
456 | $statements_analyzer->removeSuppressedIssues([$issue_to_suppress]); |
|
457 | } |
|
458 | } |
|
459 | } |
|
460 | } |
|
461 | ||
462 | foreach ($definitely_newly_assigned_var_ids as $var_id => $_) { |
|
@@ 506-522 (lines=17) @@ | ||
503 | } |
|
504 | } |
|
505 | ||
506 | if ($stmt->finally) { |
|
507 | $suppressed_issues = $statements_analyzer->getSuppressedIssues(); |
|
508 | ||
509 | foreach ($issues_to_suppress as $issue_to_suppress) { |
|
510 | if (!in_array($issue_to_suppress, $suppressed_issues, true)) { |
|
511 | $statements_analyzer->addSuppressedIssues([$issue_to_suppress]); |
|
512 | } |
|
513 | } |
|
514 | ||
515 | $statements_analyzer->analyze($stmt->finally->stmts, $context); |
|
516 | ||
517 | foreach ($issues_to_suppress as $issue_to_suppress) { |
|
518 | if (!in_array($issue_to_suppress, $suppressed_issues, true)) { |
|
519 | $statements_analyzer->removeSuppressedIssues([$issue_to_suppress]); |
|
520 | } |
|
521 | } |
|
522 | } |
|
523 | ||
524 | foreach ($existing_thrown_exceptions as $possibly_thrown_exception => $codelocations) { |
|
525 | foreach ($codelocations as $hash => $codelocation) { |