Update phpDoc of the content type JSON regex and fix the regex delimiter

Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Stanimir Bozhilov <stanimir.bozhilov.1998@gmail.com>
pull/34172/head
Stanimir Bozhilov 3 years ago committed by GitHub
parent b44befa881
commit ca39261342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/public/IRequest.php

@ -99,8 +99,9 @@ interface IRequest {
/**
* @var string
* @since 26.0.0
*/
public const JSON_CONTENT_TYPE_REGEX = '{^application/(?:[a-z0-9.-]+\+)?json\b}';
public const JSON_CONTENT_TYPE_REGEX = '/^application\/(?:[a-z0-9.-]+\+)?json\b/';
/**
* @param string $name

Loading…
Cancel
Save