Open simPod opened 3 years ago
I found these snippets:
Don't quote me on this but my best guess is that it was a solution to limit complexity of the implementation. I didn't yet work in this part of the code, but I expect this will be tricky to understand.
I'll flag this as enhancement, but I don't think I'll work on it unless it become part of PHP itself...
As a workaround, I'd suggest having both class implement a common interface...
https://psalm.dev/r/baf0df5a1a
I wonder why
Intersection types cannot contain unions
I wanted the type to implement either interface
A
orB
and be of typestatic
at the same time.