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 endless recursion with nested traits via anonymous classes #1303

Merged
merged 1 commit into from May 12, 2022

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented May 11, 2022

Closes phpstan/phpstan#7214

I'm still not a 100% sure about this. The idea came from the fact that anonymous classes can be nested and therefore it might make sense to pass the parent scope.

@herndlm herndlm changed the base branch from 1.7.x to 1.6.x May 11, 2022 20:53
@herndlm
Copy link
Contributor Author

herndlm commented May 12, 2022

temporarily reverted the commit to make sure the 3 errors really came from these changes. they do. I still don't understand what they have to do with the parent scope, anonymous classes or traits. could be some MutatingScope internals, or I overlooked something. no idea atm but I'll take another look

UPDATE: found it, this was my fault, I seem to have created a CI race condition or wrong runs basically because I initially had 1.7.x as target and switched over to 1.6.x later

@herndlm herndlm force-pushed the fix-7214 branch 3 times, most recently from aad29aa to 233e894 Compare May 12, 2022 08:09
@herndlm herndlm marked this pull request as ready for review May 12, 2022 08:18
@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
2 participants