@@ -25,14 +25,14 @@ public function __construct(
2525 public function process (ServerRequestInterface $ request , RequestHandlerInterface $ handler ): ResponseInterface
2626 {
2727 if (null === $ accept = $ this ->acceptNegotiator ->negotiate ($ request )) {
28- $ supportedMediaTypes = $ this ->acceptNegotiator ->getSupportedMediaTypes ();
28+ $ supportedAccepts = $ this ->acceptNegotiator ->getSupportedMediaTypes ();
2929
3030 return $ this ->responseManager ->createFromHttpException (
3131 HttpException::createNotAcceptable ([
3232 'accept ' => $ request ->getHeaderLine ('Accept ' ),
33- 'supported-accepts ' => $ supportedMediaTypes ,
33+ 'supportedAccepts ' => $ supportedAccepts ,
3434 ]),
35- $ supportedMediaTypes [0 ],
35+ $ supportedAccepts [0 ],
3636 );
3737 }
3838
@@ -42,8 +42,8 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
4242 if (null === $ contentType = $ this ->contentTypeNegotiator ->negotiate ($ request )) {
4343 return $ this ->responseManager ->createFromHttpException (
4444 HttpException::createUnsupportedMediaType ([
45- 'content-type ' => $ request ->getHeaderLine ('Content-Type ' ),
46- 'supported-content-types ' => $ this ->contentTypeNegotiator ->getSupportedMediaTypes (),
45+ 'contentType ' => $ request ->getHeaderLine ('Content-Type ' ),
46+ 'supportedContentTypes ' => $ this ->contentTypeNegotiator ->getSupportedMediaTypes (),
4747 ]),
4848 $ accept ->getValue (),
4949 );
0 commit comments