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 #3622

Merged
merged 1 commit into from
Nov 11, 2024

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

@ondrejmirtes ondrejmirtes merged commit fd6a0f2 into phpstan:1.12.x Nov 11, 2024
453 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

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.

2 participants