Skip to content

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