-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Wildcard rules behavioural differences in 5.4 #17660
Comments
Thank you, a PR was created that should handle the issue. |
Much appreciated, thanks! |
@themsaid in Laravel 5.2 I was doing:
{"x":{"0":{"y":"0"},"1":{"y":"1"}}} Where the first should be a value of 0 and all subsequent should be a valid ID in the database. In Laravel 5.5 this is no longer working because
Is this expected functionality? |
@bytestream I'd say that is 'expected' functionality given that I can see it's not the functionality you're after though. If all of the items in |
Description:
I previously enjoyed (5.3) doing the following with multiple, predefined array inputs. In this example, there are x
emails[]
fields but only the first email should be required.I'd then
collect($request->emails)
, filter out thenull
s and do something. However, in 5.4 this results in:Steps To Reproduce:
As a full example:
validate
method or manually validate with:In 5.3.*, this worked perfectly. My main question is whether this is an intended change. I know the ValidationRuleParser was added in 5.4, so not sure if this very niche requirement was ignored due to it feeling a bit hacky anyway.
The text was updated successfully, but these errors were encountered: