mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 22:14:26 +00:00
refactor(remoteProcess): update sanitize_utf8_text function to accept nullable string parameter for improved type safety
This commit is contained in:
1 parent
d47d2f14f7
commit
81d6cb539b
1 file changed
+1
-1
@@ -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 '';
|
||||
|
||||
Reference in new issue
Block a user