diff --git a/src/CoreExtension/Provider/RoleOptionsProvider.php b/src/CoreExtension/Provider/RoleOptionsProvider.php index 5438257..fd454c7 100644 --- a/src/CoreExtension/Provider/RoleOptionsProvider.php +++ b/src/CoreExtension/Provider/RoleOptionsProvider.php @@ -38,7 +38,7 @@ public function getOptions(array $context, Data $fieldDefinition): array return array_map( static fn ($role): array => ['key' => $role, 'value' => $role], - array_unique($roles) + array_values(array_unique($roles)) ); }