From 81d6cb539b6af802457a84442043e0fe639ce4cc Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:53:23 +0200 Subject: [PATCH] refactor(remoteProcess): update sanitize_utf8_text function to accept nullable string parameter for improved type safety --- bootstrap/helpers/remoteProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/helpers/remoteProcess.php b/bootstrap/helpers/remoteProcess.php index 986a08e17..6c1e2beab 100644 --- a/bootstrap/helpers/remoteProcess.php +++ b/bootstrap/helpers/remoteProcess.php @@ -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 '';