refactor(remoteProcess): update sanitize_utf8_text function to accept nullable string parameter for improved type safety
This commit is contained in:
parent
d47d2f14f7
commit
81d6cb539b
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ function remove_iip($text)
|
|||
* @param string|null $text The text to sanitize
|
||||
* @return string Valid UTF-8 encoded text
|
||||
*/
|
||||
function sanitize_utf8_text($text): string
|
||||
function sanitize_utf8_text(?string $text): string
|
||||
{
|
||||
if (empty($text)) {
|
||||
return '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue