1.2.1218. Try With Finally

Indicates if a try use a finally statement.

<?php

try {
    $a = doSomething();
} catch (Throwable $e) {
    // Fix the problem
} finally {
    // remove $a anyway
    unset($a);
}

?>

See also Exceptions.

1.2.1218.1. Specs

Short name

Structures/TryFinally

Rulesets

All, Appinfo, CE

Exakat since

0.8.4

PHP Version

With PHP 5.5 and more recent

Severity

Time To Fix

Precision

Very high

Features

try-catch, finally

Available in

Entreprise Edition, Community Edition, Exakat Cloud