From d2d7c8639c3a336e17a524b4167e130c47c6e818 Mon Sep 17 00:00:00 2001 From: gravel Date: Wed, 12 Apr 2023 18:49:08 +0200 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 == "") {