===description===
preventPossiblyUndefinedVarInTry
===file===
<?php
                    class Foo {
                        public static function possiblyThrows(): bool {
                            $result = (bool)rand(0, 1);

                            if (!$result) {
                                throw new Exception("BOOM");
                            }

                            return true;
                        }
                    }

                    try {
                        $result = Foo::possiblyThrows();
                        $a = "ACME";

                        if ($result) {
                            echo $a;
                        }
                    } catch (Exception $e) {
                        echo $a;
                    }
===expect===
PossiblyUndefinedGlobalVariable
===ignore===
TODO
