* helper: auto trim string variable when calling convertType function.

This commit is contained in:
liugang
2023-11-23 10:00:20 +08:00
parent 2ea974ac8d
commit f897d742e5
+1 -1
View File
@@ -387,7 +387,7 @@ class helper extends baseHelper
return $value ? (string)$value : null;
case 'string':
default:
return (string)$value;
return trim((string)$value);
}
}