Skip to content

Fix crash when redefining method with fewer params (fixes #8141).#8174

Merged
orklah merged 1 commit intovimeo:4.xfrom
AndrolGenhald:fix-attribute-crash
Jun 26, 2022
Merged

Fix crash when redefining method with fewer params (fixes #8141).#8174
orklah merged 1 commit intovimeo:4.xfrom
AndrolGenhald:fix-attribute-crash

Conversation

@AndrolGenhald
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants