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

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