forked from mirrors/easyappointments
Avoid null argument values passed to the PHP function
This commit is contained in:
parent
194fa16039
commit
fa8b8459d4
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue