Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.8] Make inequality validation fail on different types rather than 500 #28174
There are four types of inequality validators:
This change fixes the behaviour by returning false if the types are different. Tests cases were added for both a different type ('int' != 'string') and if the related attribute was missing entirely. This is not a breaking change, because the validator is handling more than it did before, so I've targeted 5.8 as taylorotwell said in #28168
@devcircus I could retarget into master, but I'd prefer 5.8. But, whatever is best for Laravel and its users.