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

Fix for endless loop detection #3621

Closed
wants to merge 1 commit into from

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Nov 11, 2024

Doing this in the generalized finalScope which includes an already filtered bodyScope is too late and causes false-positives.

Fixes phpstan/phpstan#11992
Improves endless loop detection as in cases like phpstan/phpstan#736
And most likely it fixes what was mentioned in the discussion phpstan/phpstan#11986 too

Follow-up for #3573

Alternative for 1.12.x in case this is too annoying for users there and needs another release...: #3622

@herndlm
Copy link
Contributor Author

herndlm commented Nov 11, 2024

Closing in favor of adding this to 1.12.x in #3622 after reading that 1.12.x will still receive support.

@herndlm herndlm closed this Nov 11, 2024
@herndlm herndlm deleted the fix-for-endless-loop branch November 11, 2024 14:50
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.

For loops detected as always terminating
1 participant