Skip to content

Commit

Permalink
Fix type name
Browse files Browse the repository at this point in the history
  • Loading branch information
Smeagolworms4 committed Oct 31, 2018
1 parent b635181 commit c47eb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EnumType.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getName() {
if ($pos !== false) {
$class = substr($class, $pos+1);
}
$class = mb_strtolower(trim(preg_replace('/(?<=\\w)(?=[A-Z])/'," $1", $class)));
$class = str_replace(' ', '_', mb_strtolower(trim(preg_replace('/(?<=\\w)(?=[A-Z])/'," $1", $class))));
return self::ENUM.'_'.$class;
}
}

0 comments on commit c47eb77

Please sign in to comment.