Re: NULL Coercion Consistency

From: Date: Mon, 25 Apr 2022 10:45:55 +0000
Subject: Re: NULL Coercion Consistency
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-117592@lists.php.net to get a copy of this message
On 25 Apr 2022, at 11:35, Rowan Tommins <rowan.collins@gmail.com> wrote: > Taking time to find and make fixes is the whole point of deprecation notices - if nothing else > changes, they can expect to have another 3.5 years before a version of PHP is released where these > become errors. Upgrading to PHP 8.1 as soon as possible but only tackling the deprecations when time > allows is absolutely the right thing to do. That's true for things that need to be fixed, like the deprecation and removal of magic quotes, but this is a lot of work for... I can't provide an answer to that. In the mean time, I've only convinced 3 teams to upgrade to 8.1, and two of them are using set_error_handler() to specifically ignore this error (the log files were filled with far too many "passing null to parameter" deprecation messages, whereas adding #[ReturnTypeWillChange] wasn't too bad). Craig

« previous php.internals (#117592) next »