Re: Passing null to parameter

From: Date: Fri, 10 Nov 2023 12:32:41 +0000
Subject: Re: Passing null to parameter
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-121642@lists.php.net to get a copy of this message
On 10 Nov 2023, at 12:16, Andreas Leathley <a.leathley@gmx.net> wrote: > Also note that in your example $q could be an array (leading to a fatal error in the code)from > the request data, which is why checking types thoroughly (not just coercing them with strval) can be > helpful in avoiding unexpected situations and deciding how to handle such situations, instead of > yolo-ing it. Yep, and I completely agree, but I'm not focusing on my code, I'm looking at the code the vast majority of developers write... and I do not want PHP 9 to be so difficult to use that people stay on PHP 8 forever. Craig

« previous php.internals (#121642) next »