refactor(remoteProcess): update sanitize_utf8_text function to accept nullable string parameter for improved type safety

This commit is contained in:
Andras Bacsai
2025-06-10 10:53:23 +02:00
parent d47d2f14f7
commit 81d6cb539b

View File

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