Skip to content

Commit fce4283

Browse files
fix faulty serialization of role options (#218)
1 parent f8a4319 commit fce4283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoreExtension/Provider/RoleOptionsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getOptions(array $context, Data $fieldDefinition): array
3838

3939
return array_map(
4040
static fn ($role): array => ['key' => $role, 'value' => $role],
41-
array_unique($roles)
41+
array_values(array_unique($roles))
4242
);
4343
}
4444

0 commit comments

Comments
 (0)