xp-framework / core

The XP Framework is an all-purpose, object oriented PHP framework.
Other
19 stars 6 forks source link

Nullable union types #257

Closed thekid closed 3 years ago

thekid commented 3 years ago

See https://wiki.php.net/rfc/union_types_v2, section "Nullable union types":

Union types and the ?T nullable type notation cannot be mixed. Writing ?T1|T2, T1|?T2 or ?(T1|T2) is not supported and T1|T2|null needs to be used instead.

Currently, these raise a ClassNotFoundException with Class "null" could not be found

thekid commented 3 years ago

Until #253 is implemented, the null should simply be erased

thekid commented 3 years ago

Released in https://github.com/xp-framework/core/releases/tag/v10.5.3