Null deprecation

htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
This commit is contained in:
g7sim 2023-05-28 20:23:44 +02:00
parent c4c1b67e5e
commit a19cf4e2f4
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ function pre($mixed){
$mixed = 'false';
}
default:
$output = '(' . $type . ')' . htmlspecialchars($mixed, ENT_COMPAT, 'UTF-8', false) . '';
$output = '(' . $type . ')' . htmlspecialchars($mixed ?? "", ENT_COMPAT, 'UTF-8', false) . '';
break;
}