Run Rector on your code to see what it can do for you:
foreach ([1, 2, 3] as $value) { try { - $body = null; $body = get_body(); var_dump($body); } catch (Exception) {
Applied Rules:
Not a change you expect?
rector.php