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

Improve implicit Enum binding documentation #8283

Merged
merged 1 commit into from
Oct 9, 2022

Conversation

lupinitylabs
Copy link
Contributor

@lupinitylabs lupinitylabs commented Oct 8, 2022

This PR will improve the route model binding documentation by explicitly stating that only string-backed Enums are supported in implicit Enum binding.

The feature that was introduced in #40281 explicitly ignores int-backed Enums which potentially leads to confusion because the binding just silently won't work when using Enums backed by integers.

@taylorotwell taylorotwell merged commit c010619 into laravel:9.x Oct 9, 2022
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.

2 participants