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 crash when redefining method with fewer params (fixes #8141). #8174

Merged
merged 1 commit into from Jun 26, 2022

Conversation

AndrolGenhald
Copy link
Collaborator

I think the way Psalm handles stubs and conditionally defined classes could be significantly improved if we rescanned the currently analyzed class separately and analyzed that result instead of using the class storage from the original full scan of the codebase. That way we could analyze each class declaration independently based only on that declaration. For now though, I just disabled the attribute analysis if it's going to cause a crash.

@AndrolGenhald AndrolGenhald added the release:fix The PR will be included in 'Fixes' section of the release notes label Jun 26, 2022
@orklah orklah merged commit 06dd975 into vimeo:4.x Jun 26, 2022
@orklah
Copy link
Collaborator

orklah commented Jun 26, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants