diff --git a/src/Forms/Helpers.php b/src/Forms/Helpers.php index 5d4eb1e5..8aedb1f7 100644 --- a/src/Forms/Helpers.php +++ b/src/Forms/Helpers.php @@ -302,6 +302,6 @@ public static function getSingleType($reflection): ?string /** @internal */ public static function getSupportedImages(): array { - return array_map(fn($type) => Image::typeToMimeType($type), Image::getSupportedTypes()); + return array_values(array_map(fn($type) => Image::typeToMimeType($type), Image::getSupportedTypes())); } }