psalm icon indicating copy to clipboard operation
psalm copied to clipboard

begin handling of property hooks

Open orklah opened this issue 10 months ago • 0 comments

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

orklah avatar Mar 12 '25 11:03 orklah