# Bug report When the variable is set in `if` conditions (both cover all execution cases) PHPStan reports an error. Could be similar to https://github.com/phpstan/phpstan/issues/5805 ### Code snippet that reproduces the problem https://phpstan.org/r/9ed5bd67-660e-4084-9848-13db4201e2c5 ### Expected output No errors ### Did PHPStan help you today? Did it make you happy in any way? PHPStan helps us every day to catch a possible errors on early steps.
Activity
github-actions commentedon Oct 13, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.