On Tue, Apr 26, 2016 at 11:00 AM, Niklas Keller <m...@kelunik.com> wrote: > 2016-04-26 16:58 GMT+02:00 Bob Weinand <bobw...@hotmail.com>: >> >> Yeah, I'd like to not allow ?Foo in any case if union types pass. > > > What's the reason for that? To me, null is neither a type nor should it be.
On the contrary, our manual says: > NULL is the only possible value of type null. And internally it is also a distinct type. It's been this way for a long time; we just haven't permitted `null` as a type declaration because until now it has been useless. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php