Skip to content

refactor: Make use of PHPStan InClassNode on PHPStanNodeScopeResolver - #8902

Merged
TomasVotruba merged 1 commit into
mainfrom
refactor-use-inclass-node
Oct 31, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
refactor-use-inclass-node

Conversation

@samsonasik

Copy link
Copy Markdown
Member

PHPStan already reports the scope it entered the class with through InClassNode, so this sets the attribute from there and removes the hack.

@samsonasik

Copy link
Copy Markdown
Member Author

@TomasVotruba ready 👍

@TomasVotruba

Copy link
Copy Markdown
Member

How elegant 🥰

@TomasVotruba
TomasVotruba merged commit 20f3686 into main Oct 31, 2026
51 checks passed
@TomasVotruba
TomasVotruba deleted the refactor-use-inclass-node branch October 31, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants