Skip to content
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

[8.x] Minor improvements to validation assertions API #38422

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

dwightwatson
Copy link
Contributor

@dwightwatson dwightwatson commented Aug 18, 2021

This makes a couple of minor improvements to the new validation assertions API:

  • assertInvalid can now take no error arguments (like assertInvalid) so you can generically assert that there are errors - assertInvalid()
  • The errors are passed through Arr::wrap (like assertValid) so that you can just pass a single key - assertInvalid('email')

@dwightwatson
Copy link
Contributor Author

That failing test on 7.3 doesn't look related, hopefully a re-run clears it up.

@taylorotwell taylorotwell merged commit ed4f354 into laravel:8.x Aug 18, 2021
@f1amy
Copy link

f1amy commented Aug 24, 2021

Please update PHPDoc too for static analysis tools: @param array|string $errors.

victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
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.

None yet

3 participants