Skip to content

Commit a1c6d0a

Browse files
committed
Support Symfony 7
1 parent 7c0e1fa commit a1c6d0a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.2.6
4+
- Support symfony 7 & fix deprecation.
5+
- Deprecate `form` request input data.
6+
- Upgrade PHPUnit & fix deprecation.
7+
- Add nix flake for development environment.
8+
39
## 1.2.5
410
- Fix [#10](https://github.com/sfmok/request-input-bundle/issues/10) issue - throw `UnsupportedMediaTypeHttpException` in case `Content-Type` header is missing or unsupported.
511

src/Factory/InputFactory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public function createFromRequest(Request $request, string $type): iterable
3333
return [];
3434
}
3535

36+
if (!is_subclass_of($type, InputInterface::class)) {
37+
return [];
38+
}
39+
3640
$contentType = $request->headers->get('CONTENT_TYPE');
3741
if (null === $contentType || '' === $contentType) {
3842
throw new UnsupportedMediaTypeHttpException('The "Content-Type" header must exist and not empty.');

0 commit comments

Comments
 (0)