Skip to content

Commit c11314b

Browse files
committed
fix removed deprecation http-foundation ^7.0 'Request::getContentType'
Signed-off-by: FilippeB <filippe.b@gmail.com>
1 parent 51872e9 commit c11314b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EventListener/JsonApiProblemExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function onKernelException(ExceptionEvent $event): void
3636
$request = $event->getRequest();
3737
if (
3838
false === mb_strpos($request->getPreferredFormat(), 'json')
39-
&& false === mb_strpos((string) $request->getContentType(), 'json')
39+
&& false === mb_strpos((string) $request->getContentTypeFormat(), 'json')
4040
) {
4141
return;
4242
}

0 commit comments

Comments
 (0)