Re: [RFC] Mixed type
| From: | Matthew Brown | Date: | Fri, 24 Apr 2020 15:09:44 +0000 |
| Subject: | Re: [RFC] Mixed type | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109830@lists.php.net to get a copy of this message | ||
>
> How much would you like/be adverse to a rector rule that changes
>
mixed
> into a long union type (without resource in it)?
> Considering above posts, mixed is effectively
> null|bool|string|int|float|array|object|resource,
>
At runtime those things are effectively the same, but in the world of types
mixed has its own distinct meaning – I'd be very averse to any sort of
corresponding replacement.