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>
This commit is contained in:
Stanimir Bozhilov 2022-12-08 18:16:59 +01:00 committed by GitHub
parent b44befa881
commit ca39261342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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