Skip to content

Commit

Permalink
Helpers::getSupportedTypes() returns array [Closes #332]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 3, 2024
1 parent ea29579 commit 06c98c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}

0 comments on commit 06c98c6

Please sign in to comment.