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

[5.4] Fix validating present with nullable #18173

Merged
merged 1 commit into from Mar 1, 2017
Merged

[5.4] Fix validating present with nullable #18173

merged 1 commit into from Mar 1, 2017

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Mar 1, 2017

Having nullable|present, we use Arr::get() to find the value of the field to check if its nullable, if the field is not present Arr::get() defaults to null which causes the validator to consider the attributes as not validatable since it's null and null is ok.

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.

None yet

2 participants