Re: [RFC] [VOTE] Allow null and false as stand-alone types
| From: | G. P. B. | Date: | Sat, 12 Mar 2022 18:30:00 +0000 |
| Subject: | Re: [RFC] [VOTE] Allow null and false as stand-alone types | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117317@lists.php.net to get a copy of this message | ||
On Sat, 12 Mar 2022 at 18:18, David Rodrigues <david.proweb@gmail.com>
wrote:
> Maybe I'm a little late to this discussion, but is there any reason why
> *false|null* is allowed but *true|null* is not?
>
> I can think of few cases where *true|null* could be interesting, but I've
> been through situations like this.
>
true is not a type in PHP compared to false, therefore it is not included.
I'm working on a proposal to add true as a type to PHP, but that's a
seperate RFC and discussion.
Best regards,
George P. Banyard