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

begin handling of property hooks #11359

Open
wants to merge 1 commit into
base: 6.x
Choose a base branch
from
Open

begin handling of property hooks #11359

wants to merge 1 commit into from

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Mar 12, 2025

This is a beggining for property hooks handling in Psalm

What I did is basically try to duplicate what Psalm does when it sees a class method but applied to properties that have a hook. It involve creating fake methods so that Psalm understands this can be called

It doesn't work completely yet. It seems that the MethodStorage I retrieve are not completely filled. That is preventing Psalm to analyse the hook as a method and it complains that the argument for the fake set method is unused

I'm not sure I'll work with it anytime soon. Feel free to use this as you want if you're trying to get property hooks done

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.

1 participant