Closed thekid closed 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
Until #253 is implemented, the null should simply be erased
null
Released in https://github.com/xp-framework/core/releases/tag/v10.5.3
See https://wiki.php.net/rfc/union_types_v2, section "Nullable union types":
Currently, these raise a ClassNotFoundException with Class "null" could not be found