Sorry Jeff, I gave bad information for the fix. After checking the docs I see that “passing?null
?does?not?assign the default value” so the fix should be in the method instead of adding the default value to the method parametres.
If you can’t use the null coalesce for backwards compatibility then the method will need something like:
if (!$string) {
$string = "";
}