Skip to content

Commit 0ab0396

Browse files
committed
Prepend new MIME types to the format list.
1 parent 9ffb5f0 commit 0ab0396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ public function setFormat(?string $format, string|array $mimeTypes): void
13701370
static::initializeFormats();
13711371
}
13721372

1373-
static::$formats[$format] = \is_array($mimeTypes) ? $mimeTypes : [$mimeTypes];
1373+
static::$formats = [$format => \is_array($mimeTypes) ? $mimeTypes : [$mimeTypes]] + static::$formats;
13741374
}
13751375

13761376
/**

0 commit comments

Comments
 (0)