Re: Passing null to parameter

From: Date: Thu, 09 Nov 2023 14:58:45 +0000
Subject: Re: Passing null to parameter
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-121622@lists.php.net to get a copy of this message
On 29 Oct 2023, at 11:02, Craig Francis <craig@craigfrancis.co.uk> wrote: > I'm getting really annoyed at the "Passing null to parameter" problem, As I'm getting the usual negative response (-3), should I write an RFC to deprecate NULL coercion in all contexts? At the moment it's weird that print($nullable) isn't deprecated. And it's weird that I can do htmlspecialchars('Hi ' . $nullable) but not 'Hi ' . htmlspecialchars($nullable). We might as well make the PHP 9 upgrade as hard as possible, just to force a little bit of strict_types=1 on everyone. Craig

« previous php.internals (#121622) next »