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 Aug 5, 2024
1 parent 08a03d9 commit fb88274
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 fb88274

Please sign in to comment.