Avoid null argument values passed to the PHP function

This commit is contained in:
Alex Tselegidis 2023-05-04 11:32:32 +02:00
parent 194fa16039
commit fa8b8459d4

View file

@ -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');
}
}