Skip to content

[12.x] Refactor: use enum_value() helper for environment value extraction#58785

Merged
taylorotwell merged 1 commit intolaravel:12.xfrom
alipowerful7:refactor/use-enum_value
Feb 12, 2026
Merged

[12.x] Refactor: use enum_value() helper for environment value extraction#58785
taylorotwell merged 1 commit intolaravel:12.xfrom
alipowerful7:refactor/use-enum_value

Conversation

@alipowerful7
Copy link
Contributor

Refactor: Use enum_value() helper for environment value extraction

Simplified the constructor by replacing the inline match expression with the enum_value() helper function for converting enum instances to their scalar values.

This improves code readability and maintains consistency with the framework's helper functions.

@taylorotwell taylorotwell merged commit 6257dde into laravel:12.x Feb 12, 2026
71 checks passed
@alipowerful7 alipowerful7 deleted the refactor/use-enum_value branch February 12, 2026 16:19
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