===description===
detectUnusedVarBeforeTryInsideForeach
===file===
<?php
                    function foo() : void {
                        $unused = 1;

                        while (rand(0, 1)) {
                            try {} catch (Exception $e) {}
                        }
                    }
===expect===
UnusedVariable
===ignore===
TODO
