Skip to content

Conversation

@axlon
Copy link
Contributor

@axlon axlon commented Apr 28, 2025

The AnyOf rule was introduced in #55191 and allows developers to specify multiple validation paths for a single field.

The doc block of the rule's constructor is currently invalid (its missing a starting backslash), but even if that were to be fixed the doc block would still be invalid. This is because the doc currently doesn't allow Illuminate\Contracts\Validation\Rule nor string rules. This PR fixes this by changing the argument type to array which matches Rule::anyOf().

@taylorotwell taylorotwell merged commit 797c2bb into laravel:12.x Apr 28, 2025
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants