This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
25
if (count($violations) > 0) {
26
$exception = new InvalidRequestBodyProblemException(
27
ProblemException::DEFAULT_TYPE_URI,
28
'The request body contains errors.',
29
Response::HTTP_BAD_REQUEST,
30
'Validation of XML request body failed.'
31
);
32
33
return $exception->withViolations($violations);
34
}
35
36
return null;
37
}
38
39
private function getRequestContentType(Request $request): string
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.