diff --git a/src/Forms/Helpers.php b/src/Forms/Helpers.php index 6d1a1317..3a2fdb48 100644 --- a/src/Forms/Helpers.php +++ b/src/Forms/Helpers.php @@ -70,7 +70,7 @@ private static function sanitize(int $type, $value) { if ($type === Form::DataText) { return is_scalar($value) - ? Strings::normalizeNewLines($value) + ? Strings::normalizeNewLines((string) $value) : null; } elseif ($type === Form::DataLine) {