Post #1591022
2026-04-15 14:04 UTC
@beberlei @OndrejMirtes @bobmagicii @asgrim your description is valid for a union type. But it does not seem to handle intersection types.
Replies (1)
-
@OndrejMirtes@phpc.social 2026-04-19 09:39
@stof @beberlei @bobmagicii @asgrim Another realistic case that might be questionable in the future - what about generics or array contents? Should "Foo" have "Bar" in the "getClasses" array? Again, has to be handled on case-by-case basis.