Skip to content

Conversation

@lorenzolosa
Copy link
Contributor

Rule::when() and Rule::unless() accept class-based custom rules (in the second and third parameters), but this is not reflected in the phpdoc types. This PR includes them.

Both ValidationRule and the legacy InvokableRule and Rule are included, since all three are currently in use, even though the latter are deprecated.

@taylorotwell taylorotwell merged commit 24d0b5b into laravel:10.x Feb 9, 2024
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.

3 participants