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

                        if (rand(0, 1)) {
                        } else {
                            while (rand(0, 1)) {
                                $a = 2;
                            }
                        }
                    }
===expect===
UnusedVariable
===ignore===
TODO
