On 29 Oct 2023, at 11:02, Craig Francis <[email protected]> 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php