Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Ensures that null data passed to an input filter is cast to an empty array #161

Conversation

weierophinney
Copy link
Member

Per #159, BaseInputFilter works inconsistently when a null value is passed to setData(), interpreting this as an invalid argument type versus an empty data set. This is particularly problematic with nested sets sent via an API, as they may be nullable. In such cases, they should be treated the same as if an empty array were provided.

Fixes #159.

…y array

Per zendframework#159, `BaseInputFilter` works inconsistently when a `null` value is
passed to `setData()`, interpreting this as an invalid argument type
versus an empty data set. This is particularly problematic with nested
sets sent via an API, as they may be nullable. In such cases, they
should be treated the same as if an empty array were provided.
@weierophinney weierophinney merged commit d94f78d into zendframework:master Jan 22, 2018
weierophinney added a commit that referenced this pull request Jan 22, 2018
weierophinney added a commit that referenced this pull request Jan 22, 2018
weierophinney added a commit that referenced this pull request Jan 22, 2018
@weierophinney weierophinney deleted the hotfix/159-null-input-filter-value branch January 22, 2018 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant