Skip to content

Commit 2b6c7a5

Browse files
committed
[PsrHttpMessageBridge] Remove HttpFoundation 5.4 compat code
1 parent 4d64e02 commit 2b6c7a5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Factory/PsrHttpFactory.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,7 @@ public function createRequest(Request $symfonyRequest): ServerRequestInterface
8585
}
8686

8787
$body = $this->streamFactory->createStreamFromResource($symfonyRequest->getContent(true));
88-
89-
if (method_exists(Request::class, 'getContentTypeFormat')) {
90-
$format = $symfonyRequest->getContentTypeFormat();
91-
} else {
92-
$format = $symfonyRequest->getContentType();
93-
}
88+
$format = $symfonyRequest->getContentTypeFormat();
9489

9590
if ('json' === $format) {
9691
$parsedBody = json_decode($symfonyRequest->getContent(), true, 512, \JSON_BIGINT_AS_STRING);

0 commit comments

Comments
 (0)