1
0
Fork 1

Correct string to nullable type

pull/26/head
gravel 1 year ago
parent 742f96a958
commit d2d7c8639c
Signed by: gravel
SSH Key Fingerprint: SHA256:p4HP49CCk4YQMkJpWJ09L8peEPQWjERtdCRAFxPfbOY

@ -152,7 +152,7 @@
* Convert special characters to html entities.
*/
function html_sanitize(
string $str, int $flags = ENT_QUOTES|ENT_SUBSTITUTE,
?string $str, int $flags = ENT_QUOTES|ENT_SUBSTITUTE,
?string $encoding = null, bool $double_encode = true
) {
if ($str == "") {