Skip to content

Commit

Permalink
Remove deprecated since Symfony 6.2 (#355)
Browse files Browse the repository at this point in the history
* Remove deprecated since Symfony 6.2

* Update RequestBodyExtractor.php

Fix code style
  • Loading branch information
jewome62 authored Jun 28, 2023
1 parent 09038fb commit e66a16e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Request/Extractor/RequestBodyExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ final class RequestBodyExtractor implements ExtractorInterface
{
public function getRefreshToken(Request $request, string $parameter): ?string
{
if (null === $request->getContentType() || false === strpos($request->getContentType(), 'json')) {
$contentType = method_exists(Request::class, 'getContentTypeFormat') ? $request->getContentTypeFormat() : $request->getContentType();

if (null === $contentType || false === strpos($contentType, 'json')) {
return null;
}

Expand Down

0 comments on commit e66a16e

Please sign in to comment.