Skip to content

Commit

Permalink
Update deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
nieuwenhuisen committed Jul 24, 2020
1 parent 3704d47 commit 5a4528c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/CRUDController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ private function setFormTheme(FormView $formView, ?array $theme = null): void
private function handleXmlHttpRequestErrorResponse(Request $request, FormInterface $form): ?JsonResponse
{
if (0 === \count(array_intersect(['application/json', '*/*'], $request->getAcceptableContentTypes()))) {
@trigger_error('In next major version response will return 406 NOT ACCEPTABLE without `Accept: application/json`', E_USER_DEPRECATED);
@trigger_error('In next major version response will return 406 NOT ACCEPTABLE without `Accept: application/json` or `Accept: */*`', E_USER_DEPRECATED);

return null;
}
Expand All @@ -1586,7 +1586,7 @@ private function handleXmlHttpRequestErrorResponse(Request $request, FormInterfa
private function handleXmlHttpRequestSuccessResponse(Request $request, $object): JsonResponse
{
if (0 === \count(array_intersect(['application/json', '*/*'], $request->getAcceptableContentTypes()))) {
@trigger_error('In next major version response will return 406 NOT ACCEPTABLE without `Accept: application/json`', E_USER_DEPRECATED);
@trigger_error('In next major version response will return 406 NOT ACCEPTABLE without `Accept: application/json` or `Accept: */*`', E_USER_DEPRECATED);
}

return $this->renderJson([
Expand Down

0 comments on commit 5a4528c

Please sign in to comment.