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

Fix for potential bug with non-backed enums #43842

Merged
merged 6 commits into from
Aug 24, 2022
Merged

Fix for potential bug with non-backed enums #43842

merged 6 commits into from
Aug 24, 2022

Conversation

ollieread
Copy link
Contributor

This PR abstracts out the collection of an enum case and enum value to their own methods to simplify and fixes a potential bug with addCastAttributesToArray where it always assumes a backed enum.

It also fixes something left over from the last PR, where relation dictionaries didn't support non-backed enums.

@taylorotwell taylorotwell merged commit f28d762 into laravel:9.x Aug 24, 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