Skip to content

[12.x] Bind attribute accepts UnitEnum #56616

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

Merged
merged 1 commit into from
Aug 11, 2025
Merged

Conversation

cosmastech
Copy link
Contributor

@cosmastech cosmastech commented Aug 11, 2025

We allow passing a string for the environments, so I think we should also allow passing an enum here.

Is this a breaking change?

Yes, quite possibly. But I'm hoping that since this feature was released less than a week ago, the likelihood it has been extended in userland is pretty low.

It might make sense to just drop the typehints all together here to avoid breaking changes in the future.

@taylorotwell taylorotwell merged commit 64d5107 into laravel:12.x Aug 11, 2025
62 checks passed
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