Skip to content

Conversation

@canvural
Copy link
Contributor

@canvural canvural commented Nov 2, 2025

Doing an infinite loop in a function that never returns is a valid use case.

closes phpstan/phpstan#6458
closes phpstan/phpstan#12813

@staabm
Copy link
Contributor

staabm commented Nov 2, 2025

see https://github.com/phpstan/phpstan-src/actions/runs/19016009464 how this change affects other open bug reports

@canvural canvural force-pushed the never-infinite-loop branch from 7a49398 to 13841eb Compare November 2, 2025 18:07
@canvural canvural force-pushed the never-infinite-loop branch from 13841eb to e7ba452 Compare November 2, 2025 18:08
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.alwaysTrue reported in :never method Allow infinite loops inside never return methods and functions

2 participants