From 3f57b93d5b662ece328d5ff0ef401eeed1c36850 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/server-utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/utils/server-utils.php b/php/utils/server-utils.php index 7501be2..cb632f3 100644 --- a/php/utils/server-utils.php +++ b/php/utils/server-utils.php @@ -120,7 +120,7 @@ } 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 == "") {