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

[8.x] Fix date validation #40088

Merged
merged 1 commit into from
Dec 17, 2021
Merged

[8.x] Fix date validation #40088

merged 1 commit into from
Dec 17, 2021

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Dec 17, 2021

This PR fixes a regression introduced with #39937. If a date under validation by a before (or similar) rule is validating a field that's null and allowed to be nullable through its own validation rules, then the rule should be ignored and the validation should pass. This was the behaviour before the change introduced in #39937.

The changes in this PR still contain the fix from #39937 for PHP 8.1.

Fixes #40086

@driesvints driesvints changed the title Fix date validation [8.x] Fix date validation Dec 17, 2021
@taylorotwell taylorotwell merged commit d88228e into 8.x Dec 17, 2021
@taylorotwell taylorotwell deleted the fix-date-validation branch December 17, 2021 14:40
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.

Date validation nullable with before_or_equal or after_or_equal broken
2 participants