Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply NotBlank only to the whole array #1970

Merged
merged 2 commits into from
Jan 2, 2019
Merged

Apply NotBlank only to the whole array #1970

merged 2 commits into from
Jan 2, 2019

Conversation

}
}

if (false === $this->allowBlank) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my suggestion in #1769 was not good either. Keeping the constraint on line 59 is probably necessary so that it will be applied to the nested data. Though applying it to the collection itself does not make much sense IMO (and we also have the NotNull constraint).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So should we just keep the NotNull additionnal check? I think it would make sense, I'm updating it pending your answer :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@GuilhemN GuilhemN merged commit ce2abfc into master Jan 2, 2019
@GuilhemN GuilhemN deleted the fix branch January 2, 2019 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants