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 May 12, 2024
1 parent f874222 commit 0cfa5b2
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 0cfa5b2

Please sign in to comment.