RFC: Nullable Intersection types

Project Governance
Author
Intersection types as currently accepted for PHP 8.1 are not nullable. This RFC proposes to make them so.

Make intersection types nullable

Overall Results

Yes
No
Yes
12 Votes (32%)
No
26 Votes (68%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Preferred syntax

Overall Results

"?" prefix
"|null" suffix
"?" prefix
6 Votes (17%)
"|null" suffix
29 Votes (83%)

Voting Timeline

Dates based on UTC

Voting Breakdown

Intersections should be

Overall Results

without brackets around
with brackets around
allow both styles
without brackets around
1 Votes (3%)
with brackets around
27 Votes (77%)
allow both styles
7 Votes (20%)

Voting Timeline

Dates based on UTC

Voting Breakdown