New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Union types #4838
Union types #4838
Conversation
Only had time to go through the tests: huge work, nice!
a68c5eb
to
471931e
Compare
Instead throw the generic invalid type message. Otherwise we may run into issues if a union type contains an invalid type, but also a valid one.
This is tricky...
Not sure if all of this is really worthwhile, but we can still drop it...
I'm going with a canonical type format here -- and I think we should move the rest towards this as well.
Arg/return types are immutable, while property types are not, so allocate them on arena, otherwise we run into opcache issues. Might need adjustments in some more places to handle arena vs non-arena.
Class loading is no longer relevant here, so just test general behavior.
This reverts commit 476adfa.
My only question in retrospect is why wait for PHP 8? |
@strongholdmedia because 7.4 went feature freez around a year ago |
Sure, I do know that. :) |
Yes, there's no 7.5 :) |
The uttermost shame is that I am long since subscribed to the internals list, but I couldn't get myself to wade through the nonsense of the attached .eml forest that is a PITA to view :/ Perhaps it is just time to switch to the regular format from the digest stuff. |
Implementation for union types RFC.