Correct string to nullable type

dev
gravel 2 years ago
parent 68090834e5
commit 41ec585c2b
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -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 == "") {

Loading…
Cancel
Save