Re: [RFC] Allow null as standalone type

From: Date: Tue, 05 Oct 2021 16:55:21 +0000
Subject: Re: [RFC] Allow null as standalone type
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-116230@lists.php.net to get a copy of this message
> On Oct 2, 2021, at 11:06 AM, G. P. B. <george.banyard@gmail.com> wrote: > > Hello internals, > > I'm proposing a new RFC to make 'null' usable as a standalone type. > > RFC: https://wiki.php.net/rfc/null-standalone-type Regarding the RFC's proposed disallowing of ?null, is that really needed? Obviously it doesn't make sense for a developer to write that, but I could see that a code generator would have add special-case logic to avoid outputting ? with the type null. Does it hurt anything if it is allowed? -Mike

« previous php.internals (#116230) next »