PHP8: Update for deprecated null parameters
Another absolute bitch thing PHP8 has done is deprecate support for null
function arguments that expect strings.
So, simple things like trim($param)
will fail if $param
is null. Are you fucking kidding me!? But casting the null to a string still works so instead of PHP8 doing that automatically for me, I now have to go and find every fucking instance where this is a problem and either null check the parameter, or cast it to (string)
.
WHAT A FUCKING CUNT.