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

[11.x] Allow BackedEnum when using fromRoute() in MakesHttpRequests #53593

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

wietsewarendorff
Copy link
Contributor

Since routes accept BackedEnums it makes sense to allow them when using fromRoute in tests too

@crynobone crynobone changed the title [11.x] Allow BackedEnum when using fromRoute in MakesHttpRequests [11.x] Allow BackedEnum when using fromRoute() in MakesHttpRequests Nov 20, 2024
@wietsewarendorff
Copy link
Contributor Author

@crynobone thanks for the improvement

I prefer imports too, but I am unsure when to use it. Is there a rule? For example, it's not done here so I didn't import it in this PR.
My goal is to do it right immediately next time.

@taylorotwell taylorotwell merged commit c8bd59f into laravel:11.x Nov 20, 2024
31 checks passed
@taylorotwell
Copy link
Member

@wietsewarendorff we pretty much always import.

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