From 41ec585c2bdcf7a3cbb5125b74ac2109879ccf75 Mon Sep 17 00:00:00 2001 From: gravel Date: Wed, 12 Apr 2023 16:49:08 +0000 Subject: [PATCH] Correct string to nullable type --- php/utils/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/utils/utils.php b/php/utils/utils.php index 1c5d40e..e39fb77 100644 --- a/php/utils/utils.php +++ b/php/utils/utils.php @@ -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 == "") {