You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Changelog
2
2
3
+
## 1.2.5
4
+
- Fix [#10](https://github.com/sfmok/request-input-bundle/issues/10) issue - throw `UnsupportedMediaTypeHttpException` in case `Content-Type` header is missing or unsupported.
5
+
6
+
## 1.2.4
7
+
- Update workflow to support dependencies checking
if (!\in_array($format, Input::INPUT_SUPPORTED_FORMATS)) {
34
-
thrownewUnexpectedFormatException(sprintf(
35
-
'Only the formats [%s] are supported. Got %s.',
36
-
implode(', ', Input::INPUT_SUPPORTED_FORMATS),
37
-
$format
38
-
));
32
+
// @codeCoverageIgnoreStart
33
+
if (\func_num_args() > 2) {
34
+
@trigger_error("Third argument of 'InputFactory::createFromRequest' is not in use and is removed, however the argument in the callers code can be removed without side-effects.", \E_USER_DEPRECATED);
if (!\in_array($contentType, $supportedMimeTypes, true)) {
48
+
thrownewUnsupportedMediaTypeHttpException(sprintf('The content-type "%s" is not supported. Supported MIME types are "%s".', $contentType, implode('", "', $supportedMimeTypes)));
0 commit comments