Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression: Comparison operation "<" between 0|1 and 7 is always true. #8520

Closed
gemal opened this issue Dec 13, 2022 · 2 comments
Closed

regression: Comparison operation "<" between 0|1 and 7 is always true. #8520

gemal opened this issue Dec 13, 2022 · 2 comments

Comments

@gemal
Copy link

gemal commented Dec 13, 2022

<?php declare(strict_types = 1);

        for ($i = 0; $i < 7; $i++) {
            $tryMax = true;
            while ($tryMax) {
                $tryMax = false;
            }
        }

https://phpstan.org/r/9b3d2391-9fa7-4d27-ad8c-cc5ac94d50a7

happens in 1.9.3 not in 1.9.2

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@a8975b1

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants