- Laravel Version: 8.32.0
- PHP Version: 7.4.0
- Database Driver & Version: irrelevant
Description:
It seems that this PR broke required_if validation rule with boolean values. Here's a validation rule which worked until 8.31:
[
"is_organization" => ["required", "boolean"],
"personal_occupation" => ["required_if:is_organization,0"]
]
But since 8.32.0 this will pass without ValidationException with is_organization send to false and personal_occupation to null (or empty).