Heyo, just a follow-up.

On Fri, 13 Aug 2021, 13:30 Marco Pivetta, <ocram...@gmail.com> wrote:

> Hey Nicolas,
>
>
> On Fri, Aug 13, 2021 at 11:35 AM Nicolas Grekas <nicolas.gre...@gmail.com>
> wrote:
>
>> Hi everyone,
>>
>> I'm happy to announce that the vote for nullable intersection types is now
>> open:
>> https://wiki.php.net/rfc/nullable_intersection_types
>>
>> It'll close in two weeks, on the 27th.
>>
>
> I voted NO on this one. I'm not opposed to nullable intersection types,
> but not in PHP 8.1.
>
> Specifically, I'm waiting for the first RC releases to land in September
> to even start looking at PHP 8.1 support for any of my projects, and
> stability is key.
>
> I also am not on board with the lack of design around reflection API here.
>

I just re-checked the RFC, and I'm completely against the reflection design
in here (which I previously dismissed as "oversight").

An `(A&B)|null` is **not** a `ReflectionIntersectionType`, but should
instead be a `ReflectionUnionType`.


Therefore, adding this to the "NO" reasons, since we'll otherwise have to
live with this mistake for many years to come.

>

Reply via email to