Skip to content

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 ondrejmirtes merged commit e46c6d3 into phpstan:1.6.x May 12, 2022
@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.

PHPStan hangs with trait that returns anonymous class that uses the trait

2 participants