[RFC] Nullable intersection types
| From: | Nicolas Grekas | Date: | Fri, 23 Jul 2021 09:58:00 +0000 |
| Subject: | [RFC] Nullable intersection types | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-115554@lists.php.net to get a copy of this message | ||
Hi everyone,
as proposed by Nikita and Joe, I'm submitting this late RFC for your
consideration for inclusion in PHP 8.1. Intersection types as currently
accepted are not nullable. This RFC proposes to make them so.
I wrote everything down about the reasons why here:
https://wiki.php.net/rfc/nullable_intersection_types
Please have a look and let me know what you think.
Have a nice read,
Nicolas