Skip to content

Commit

Permalink
Update templates/bake/Model/enum.twig
Browse files Browse the repository at this point in the history
Co-authored-by: ADmad <[email protected]>
  • Loading branch information
dereuromark and ADmad authored Dec 23, 2023
1 parent 1f001a5 commit 7f827ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/bake/Model/enum.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ enum {{ name }}{{ backed ? ': ' ~ backed : ''}} implements EnumLabelInterface
*/
public function label(): string
{
return Inflector::humanize(mb_strtolower($this->name));
return Inflector::humanize(Inflector::underscore($this->name));
}
}

0 comments on commit 7f827ef

Please sign in to comment.