Skip to content

Commit

Permalink
Use headline for BC reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Sep 18, 2024
1 parent fb3a81b commit 7cb533f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/OptionsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function getArrayableItems($items)
$items = collect($items::cases())->mapWithKeys(function(UnitEnum $case) {
$label = method_exists($case, 'description')
? $case->description()
: Str::apa(Str::headline($case->name));
: Str::headline($case->name);

if ($case instanceof BackedEnum) {
return [$case->value => $label];
Expand Down

0 comments on commit 7cb533f

Please sign in to comment.