From fd01839d659a064f80217e83bdc3f89d30b30d25 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 12 May 2024 15:06:44 +0200 Subject: [PATCH] Helpers::getSupportedTypes() returns array [Closes #332] --- src/Forms/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } }