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

feat: adds throw types for macros #1013

Merged
merged 1 commit into from
Nov 7, 2021
Merged

Conversation

canvural
Copy link
Collaborator

@canvural canvural commented Nov 6, 2021

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Fixes #1004

Changes

This PR adds support to define throw types for macro methods. Since macros are magic methods, a map of method names and exception classes is used. So in future this map should be updated if we want to add more method and exception combinations.

Breaking changes

@canvural canvural merged commit 3b7e6ea into master Nov 7, 2021
@canvural canvural deleted the throw-types-for-macros branch November 7, 2021 10:23
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.

\Illuminate\Http\Request::validate() should throw exception
1 participant