str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated"

This commit is contained in:
neopheus 2022-09-12 13:59:21 +02:00
parent 077175efbe
commit fa84160f7f
2 changed files with 2 additions and 2 deletions

View File

@ -27,6 +27,6 @@ class Xml extends AbstractEscaper
protected function escapeSingleValue($input) protected function escapeSingleValue($input)
{ {
// todo: omit encoding parameter after migration onto PHP 5.4 // todo: omit encoding parameter after migration onto PHP 5.4
return (!is_null($input)) ? htmlspecialchars($input, ENT_QUOTES, 'UTF-8') : null; return (!is_null($input)) ? htmlspecialchars($input, ENT_QUOTES, 'UTF-8') : '';
} }
} }

View File

@ -261,7 +261,7 @@ class TemplateProcessor
$subject = utf8_encode($subject); $subject = utf8_encode($subject);
} }
return $subject; return (!is_null($subject)) ? $subject : '';
} }
/** /**