psalm
psalm copied to clipboard
begin handling of property hooks
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