Skip to content

IBX-12533: Fixed JsonToArrayTransformer rejecting empty string values - #125

Open
mateuszdebinski wants to merge 2 commits into
4.6from
IBX-12533-Empty-regex-validators-cause-errors
Open

mateuszdebinski wants to merge 2 commits into
4.6from
IBX-12533-Empty-regex-validators-cause-errors

Conversation

@mateuszdebinski

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12533

Description:

The fix adds an explicit $value === '' check alongside $value === null. empty($value) was deliberately avoided, since it would also catch valid JSON scalars like "0", incorrectly treating legitimate data as empty.

For QA:

Documentation:

@mateuszdebinski
mateuszdebinski requested a review from a team September 21, 2026 12:59
@mateuszdebinski mateuszdebinski self-assigned this Sep 21, 2026
@mateuszdebinski mateuszdebinski added Bug Something isn't working Ready for review labels Sep 21, 2026
@mateuszdebinski
mateuszdebinski changed the base branch from 6.0 to 4.6 September 21, 2026 12:59
@mateuszdebinski
mateuszdebinski force-pushed the IBX-12533-Empty-regex-validators-cause-errors branch from 6dff910 to 09c087a Compare September 21, 2026 13:01
Comment thread tests/lib/Form/Transformer/JsonToArrayTransformerTest.php Outdated
Comment thread tests/lib/Form/Transformer/JsonToArrayTransformerTest.php Outdated
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Ready for QA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants