Skip to content

Fixes bug 10980#3057

Merged
ondrejmirtes merged 3 commits intophpstan:1.11.xfrom
greew:bug-10980
May 9, 2024
Merged

Fixes bug 10980#3057
ondrejmirtes merged 3 commits intophpstan:1.11.xfrom
greew:bug-10980

Conversation

@greew
Copy link
Contributor

@greew greew commented May 9, 2024

When while loop condition is a while(true), the continue exit points are never used, and shouldn't be calculated in the final result.

Fixes #phpstan/phpstan/10980

greew added 3 commits May 9, 2024 18:06
When while loop condition is a `while(true)`, the `continue` exit points
are never used, and shouldn't be calculated in the final result.
@ondrejmirtes ondrejmirtes merged commit 73521c3 into phpstan:1.11.x May 9, 2024
@ondrejmirtes
Copy link
Member

Perfect, thank you! Even more awesome given this is your first contribution :) Here's to many more! 🍻

@greew
Copy link
Contributor Author

greew commented May 9, 2024

Well... I'm already sponsoring you, but might as well chip in with the code as well 😁

@greew greew deleted the bug-10980 branch May 9, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

While-true: Specific type is forgotten

2 participants