@@ -55,7 +55,7 @@ public function processShouldJustReturnTheResponseWhenEverythingIsAlright(): voi
5555 $ middleware = new ErrorConversionMiddleware (
5656 $ this ->responseFactory ,
5757 new NoDebugInfo (),
58- $ this ->statusCodeExtractor
58+ $ this ->statusCodeExtractor ,
5959 );
6060
6161 self ::assertSame ($ response , $ middleware ->process (new ServerRequest (), $ handler ));
@@ -75,7 +75,7 @@ public function processShouldJustReturnTheResponseWhenEverythingIsAlright(): voi
7575 public function processShouldConvertTheExceptionIntoAnUnformattedResponseWithTheProblemDetails (
7676 Throwable $ error ,
7777 int $ expectedStatusCode ,
78- array $ expectedData
78+ array $ expectedData,
7979 ): void {
8080 $ response = $ this ->handleProcessWithError (new ServerRequest (), $ error );
8181
@@ -100,7 +100,7 @@ public function possibleConversions(): iterable
100100 yield 'typed exceptions ' => [
101101 new SampleProblem \Typed (
102102 'Your current balance is 30, but that costs 50. ' ,
103- StatusCodeInterface::STATUS_FORBIDDEN
103+ StatusCodeInterface::STATUS_FORBIDDEN ,
104104 ),
105105 StatusCodeInterface::STATUS_FORBIDDEN ,
106106 [
@@ -113,7 +113,7 @@ public function possibleConversions(): iterable
113113 yield 'titled exceptions ' => [
114114 new SampleProblem \Titled (
115115 'Your current balance is 30, but that costs 50. ' ,
116- StatusCodeInterface::STATUS_FORBIDDEN
116+ StatusCodeInterface::STATUS_FORBIDDEN ,
117117 ),
118118 StatusCodeInterface::STATUS_FORBIDDEN ,
119119 [
@@ -126,7 +126,7 @@ public function possibleConversions(): iterable
126126 yield 'detailed exceptions ' => [
127127 new SampleProblem \Detailed (
128128 'Your current balance is 30, but that costs 50. ' ,
129- StatusCodeInterface::STATUS_FORBIDDEN
129+ StatusCodeInterface::STATUS_FORBIDDEN ,
130130 ),
131131 StatusCodeInterface::STATUS_FORBIDDEN ,
132132 [
@@ -141,7 +141,7 @@ public function possibleConversions(): iterable
141141 yield 'typed+titled+detailed exceptions ' => [
142142 new SampleProblem \All (
143143 'Your current balance is 30, but that costs 50. ' ,
144- StatusCodeInterface::STATUS_FORBIDDEN
144+ StatusCodeInterface::STATUS_FORBIDDEN ,
145145 ),
146146 StatusCodeInterface::STATUS_FORBIDDEN ,
147147 [
@@ -229,12 +229,12 @@ public function processShouldModifyTheContentTypeHeaderForXml(): void
229229 private function handleProcessWithError (
230230 ServerRequestInterface $ request ,
231231 Throwable $ error ,
232- ?DebugInfoStrategy $ debugInfoStrategy = null
232+ ?DebugInfoStrategy $ debugInfoStrategy = null ,
233233 ): ResponseInterface {
234234 $ middleware = new ErrorConversionMiddleware (
235235 $ this ->responseFactory ,
236236 $ debugInfoStrategy ?? new NoDebugInfo (),
237- $ this ->statusCodeExtractor
237+ $ this ->statusCodeExtractor ,
238238 );
239239
240240 $ handler = $ this ->createMock (RequestHandlerInterface::class);
0 commit comments