Skip to content

[12.x] Refactor: remove unnecessary \BackedEnum#58807

Merged
taylorotwell merged 1 commit intolaravel:12.xfrom
alipowerful7:refactor/remove-BackedEnum
Feb 13, 2026
Merged

[12.x] Refactor: remove unnecessary \BackedEnum#58807
taylorotwell merged 1 commit intolaravel:12.xfrom
alipowerful7:refactor/remove-BackedEnum

Conversation

@alipowerful7
Copy link
Contributor

refactor: simplify enum type hints to use parent interface

Since BackedEnum extends UnitEnum, union types like BackedEnum|UnitEnum are redundant. Updated type hints to use only UnitEnum for better clarity and consistency.

@alipowerful7
Copy link
Contributor Author

Un related test failed

@taylorotwell taylorotwell merged commit 3ec7338 into laravel:12.x Feb 13, 2026
47 of 72 checks passed
@alipowerful7 alipowerful7 deleted the refactor/remove-BackedEnum branch February 14, 2026 03:13
@alipowerful7 alipowerful7 changed the title [12.x Refactor: remove unnecessary \BackedEnum [12.x] Refactor: remove unnecessary \BackedEnum Feb 14, 2026
DarkGhostHunter pushed a commit to DarkGhostHunter/laravel-framework that referenced this pull request Feb 22, 2026
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