From 4e51357906288b320d3ce4d0ba2fc8c62dea9b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl?= Date: Thu, 12 Jan 2023 17:58:23 +0100 Subject: [PATCH] Fix empty_data option description of TextareaType --- reference/forms/types/textarea.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/textarea.rst b/reference/forms/types/textarea.rst index 3e0ac8e0db9..329c91731b4 100644 --- a/reference/forms/types/textarea.rst +++ b/reference/forms/types/textarea.rst @@ -35,7 +35,9 @@ These options inherit from the :doc:`FormType `: .. include:: /reference/forms/types/options/empty_data_declaration.rst.inc -The default value is ``''`` (the empty string). +From an HTTP perspective, submitted data is always a string or an array of strings. +So by default, the form will treat any empty string as null. If you prefer to get +an empty string, explicitly set the ``empty_data`` option to an empty string. .. include:: /reference/forms/types/options/empty_data_description.rst.inc