Re: Allowing NULL for some internal functions

From: Date: Tue, 01 Mar 2022 00:34:33 +0000
Subject: Re: Allowing NULL for some internal functions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-117171@lists.php.net to get a copy of this message
On Mon, 28 Feb 2022 at 17:35, Guilliam Xavier <guilliam.xavier@gmail.com> wrote: > Call me devil's advocate, but is it too late to discuss revisiting past > decisions and consider changing direction towards 1 for userland functions > Hi Guilliam, tbh, for those who use strict_types=1 nothing changes, so we can ignore them... for everyone else, nothing would break if user functions did start coercing NULL (if anything it just makes PHP more consistent)... whereas the current direction would add a Type Error exception for developers who aren't familiar with them, and those developers will just get annoyed at having to convert those NULL values manually (see the complaints from developers upgrading to PHP 8.1). Craig

« previous php.internals (#117171) next »