Skip to content

Commit

Permalink
Removed the String to Array Conversion.
Browse files Browse the repository at this point in the history
Removed the minor convenience change because the reviewers are too caught up on that to look at the actual bug fix.
  • Loading branch information
mcneely committed May 7, 2020
1 parent 0f63253 commit d3424b1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Symfony/Component/Mime/MimeTypes.php
Expand Up @@ -48,7 +48,6 @@ final class MimeTypes implements MimeTypesInterface
public function __construct(array $map = [])
{
foreach ($map as $mimeType => $extensions) {
$extensions = \is_string($extensions) ? [$extensions] : $extensions;
$this->extensions[$mimeType] = $extensions;

foreach ($extensions as $extension) {
Expand Down

0 comments on commit d3424b1

Please sign in to comment.