Skip to content

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

Merged
taylorotwell merged 2 commits into
laravel:11.xfrom
wietsewarendorff:11.x
Nov 20, 2024
Merged

[11.x] Allow BackedEnum when using fromRoute() in MakesHttpRequests#53593
taylorotwell merged 2 commits into
laravel:11.xfrom
wietsewarendorff:11.x

Conversation

@wietsewarendorff
Copy link
Copy Markdown
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
Copy Markdown
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
@taylorotwell
Copy link
Copy Markdown
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