# Bug report Hello, It looks like the scope of loop variable to not clearly detected ### Code snippet that reproduces the problem https://phpstan.org/r/5cf62680-7651-4d08-bc82-69be0fe581aa ```php <?php declare(strict_types = 1); function explain(int $bitField): void { for ($i = 0; $i < 5; ++$i) { } for (; $i < 15; ++$i) { } } ``` ### Expected output no error :) --- maybe related to * https://github.com/phpstan/phpstan/issues/3277 * https://github.com/phpstan/phpstan/issues/736