RFC: Union Types

Project Governance
Author
Author
Bob Weinand
PHP has type declarations which can be associated with function parameters or return values. These declarations perform two useful roles:

Merge union types

Overall Results

Yes
No
Yes
11 Votes (38%)
No
18 Votes (62%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Replace ?QuestionMarkNullables by union | null

Overall Results

Yes
No
Yes
5 Votes (19%)
No
21 Votes (81%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Include true/false types

Overall Results

Yes
No
Yes
5 Votes (18%)
No
23 Votes (82%)

Voting Timeline

Dates based on UTC

Voting Breakdown