diff --git a/src/bundle/Security/Http/Utils/JsonRequestUtils.php b/src/bundle/Security/Http/Utils/JsonRequestUtils.php index 15b7b99e..0bdb6e41 100644 --- a/src/bundle/Security/Http/Utils/JsonRequestUtils.php +++ b/src/bundle/Security/Http/Utils/JsonRequestUtils.php @@ -26,7 +26,7 @@ class JsonRequestUtils public static function isJsonRequest(Request $request): bool { - return str_contains((string) (method_exists(Request::class, 'getContentTypeFormat') ? $request->getContentTypeFormat() : $request->getContentType()), 'json'); + return str_contains((string) (method_exists(Request::class, 'getContentTypeFormat') ? $request->getContentTypeFormat() : $request->getContentType()), 'json'); } /**