Skip to content

Commit ce6c57f

Browse files
committed
fix enum support
1 parent 7b1f569 commit ce6c57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FieldModifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function sortJsonKeys($attribute)
2626
public static function convertValue($value)
2727
{
2828
if ($value instanceof \UnitEnum) {
29-
$jsonData = $value->name;
29+
$value = $value->value;
3030
}
3131

3232
$jsonData = json_decode($value);

0 commit comments

Comments
 (0)