Skip to content

[Form] Clarify that data transformers reshape the empty_data return value#22279

Open
lacatoire wants to merge 3 commits into
symfony:7.4from
lacatoire:form-clarify-empty-data-22274
Open

[Form] Clarify that data transformers reshape the empty_data return value#22279
lacatoire wants to merge 3 commits into
symfony:7.4from
lacatoire:form-clarify-empty-data-22274

Conversation

@lacatoire

Copy link
Copy Markdown
Contributor

Reorders the empty_data warning to explain why a field can return null even when its default is '' (the data transformer rewrites the value), and lists the numeric field types where this happens. Adds an inline note in IntegerType, NumberType, MoneyType, PercentType and RangeType to surface the actual returned value next to the configured default.

Fixes #22274

@lacatoire lacatoire force-pushed the form-clarify-empty-data-22274 branch from 317da41 to 248a919 Compare May 12, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Form] Clarify empty string handling

2 participants