On Mon, 19 Jul 2021 at 16:15, Bruce Weirdan <weir...@gmail.com> wrote: > > On Mon, Jul 19, 2021 at 6:09 PM Dan Ackroyd <dan...@basereality.com> wrote: > > > Prediction number 2: Having a null type in the language will happen > > before PHP 9, which will enable people to have many bike-shedding > > discussions over ?Bar vs Bar|null. > > Hasn't that already happened in 8.0? It seems to work [1] > > [1] https://3v4l.org/EfmJq >
Thanks. Wasn't aware/forgot that - but it's still not usable by itself, so is a bit of a hack. https://3v4l.org/LL9UI function f(): null { return null; } Fatal error: Null can not be used as a standalone type in Dan Ack -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php