From fa8b8459d4e4c96de9b654ecc233501582f557aa Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 4 May 2023 11:32:32 +0200 Subject: [PATCH] Avoid null argument values passed to the PHP function --- application/helpers/html_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/html_helper.php b/application/helpers/html_helper.php index 33ea345d..099064ad 100644 --- a/application/helpers/html_helper.php +++ b/application/helpers/html_helper.php @@ -26,7 +26,7 @@ if ( ! function_exists('e')) */ function e(mixed $string): string { - return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); + return htmlspecialchars((string)$string, ENT_QUOTES, 'UTF-8'); } }