1.2.163. Collect Catch Calls

This analysis collects all catch command usage, along with the exception caught and the calling method.

<?php

function foo() {
     try {
             // more code
     } catch (Exception $e) {

     }
}

?>

See also Catch.

1.2.163.1. Specs

Short name

Dump/CollectCatch

Rulesets

All, Changed Behavior, Dump

Exakat since

2.5.3

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

catch, try

Available in

Entreprise Edition, Exakat Cloud