Basically what I'd like to do is annotate a function that sets the property in an object:
https://psalm.dev/r/53eb00963c
When not using a function but manually assigning psalm correctly handles this https://psalm.dev/r/cdfb2f2b49 - which means this is purely an issue of annotation (or the lack thereof) and won't require additional logic on psalm's end I guess.
Basically what I'd like to do is annotate a function that sets the property in an object: https://psalm.dev/r/53eb00963c
When not using a function but manually assigning psalm correctly handles this https://psalm.dev/r/cdfb2f2b49 - which means this is purely an issue of annotation (or the lack thereof) and won't require additional logic on psalm's end I guess.
Is there any other way to achieve this?