On 10 Nov 2023, at 12:16, Andreas Leathley <a.leath...@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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to